home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_emacs.idb / usr / freeware / share / emacs / 19.34 / lisp / gomoku.elc.z / gomoku.elc
Emacs Compiled Lisp  |  1998-10-28  |  23.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
55% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
44% TrID Summation Document Image Information Load File default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 46 72 69 20 | 41 70 72 20 20 35 20 31 | on Fri |Apr 5 1|
|00000040| 36 3a 31 32 3a 31 31 20 | 31 39 39 36 0a 3b 3b 3b |6:12:11 |1996.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 67 64 2f 67 | from fi|le /gd/g|
|00000060| 6e 75 2f 65 6d 61 63 73 | 2f 31 39 2e 30 2f 6c 69 |nu/emacs|/19.0/li|
|00000070| 73 70 2f 67 6f 6d 6f 6b | 75 2e 65 6c 0a 3b 3b 3b |sp/gomok|u.el.;;;|
|00000080| 20 65 6d 61 63 73 20 76 | 65 72 73 69 6f 6e 20 31 | emacs v|ersion 1|
|00000090| 39 2e 33 30 2e 39 35 2e | 31 2e 0a 3b 3b 3b 20 62 |9.30.95.|1..;;; b|
|000000a0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000b0| 46 53 46 20 32 2e 31 30 | 0a 3b 3b 3b 20 6f 70 74 |FSF 2.10|.;;; opt|
|000000c0| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|000000d0| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|000000e0| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|000000f0| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000100| 6e 20 45 6d 61 63 73 20 | 31 38 2e 0a 0a 28 69 66 |n Emacs |18...(if|
|00000110| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000120| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 0a 09 20 |macs-ver|sion).. |
|00000130| 28 6f 72 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(or (and| (boundp|
|00000140| 20 27 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e | 'epoch:|:version|
|00000150| 29 20 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e |) epoch:|:version|
|00000160| 29 0a 09 20 20 20 20 20 | 28 73 74 72 69 6e 67 2d |).. |(string-|
|00000170| 6c 65 73 73 70 20 65 6d | 61 63 73 2d 76 65 72 73 |lessp em|acs-vers|
|00000180| 69 6f 6e 20 22 31 39 2e | 32 39 22 29 29 29 0a 20 |ion "19.|29"))). |
|00000190| 20 20 20 28 65 72 72 6f | 72 20 22 60 67 6f 6d 6f | (erro|r "`gomo|
|000001a0| 6b 75 2e 65 6c 27 20 77 | 61 73 20 63 6f 6d 70 69 |ku.el' w|as compi|
|000001b0| 6c 65 64 20 66 6f 72 20 | 45 6d 61 63 73 20 31 39 |led for |Emacs 19|
|000001c0| 2e 32 39 20 6f 72 20 6c | 61 74 65 72 22 29 29 0a |.29 or l|ater")).|
|000001d0| 0a 0a 23 40 35 38 20 49 | 66 20 6e 6f 6e 2d 6e 69 |..#@58 I|f non-ni|
|000001e0| 6c 2c 20 69 74 73 20 76 | 61 6c 75 65 20 69 73 20 |l, its v|alue is |
|000001f0| 63 61 6c 6c 65 64 20 6f | 6e 20 65 6e 74 72 79 20 |called o|n entry |
|00000200| 74 6f 20 47 6f 6d 6f 6b | 75 20 6d 6f 64 65 2e 1f |to Gomok|u mode..|
|00000210| 0a 28 64 65 66 76 61 72 | 20 67 6f 6d 6f 6b 75 2d |.(defvar| gomoku-|
|00000220| 6d 6f 64 65 2d 68 6f 6f | 6b 20 6e 69 6c 20 28 23 |mode-hoo|k nil (#|
|00000230| 24 20 2e 20 34 37 31 29 | 29 0a 23 40 33 37 20 4c |$ . 471)|).#@37 L|
|00000240| 6f 63 61 6c 20 6b 65 79 | 6d 61 70 20 74 6f 20 75 |ocal key|map to u|
|00000250| 73 65 20 69 6e 20 47 6f | 6d 6f 6b 75 20 6d 6f 64 |se in Go|moku mod|
|00000260| 65 2e 1f 0a 28 64 65 66 | 76 61 72 20 67 6f 6d 6f |e...(def|var gomo|
|00000270| 6b 75 2d 6d 6f 64 65 2d | 6d 61 70 20 6e 69 6c 20 |ku-mode-|map nil |
|00000280| 28 23 24 20 2e 20 35 37 | 35 29 29 0a 28 62 79 74 |(#$ . 57|5)).(byt|
|00000290| 65 2d 63 6f 64 65 20 22 | 08 84 03 01 c1 20 10 c2 |e-code "|..... ..|
|000002a0| 08 c3 c4 23 88 c2 08 c5 | c6 23 88 c2 08 c7 c8 23 |...#....|.#.....#|
|000002b0| 88 c2 08 c9 ca 23 88 c2 | 08 cb cc 23 88 c2 08 cd |.....#..|...#....|
|000002c0| ce 23 88 c2 08 cf d0 23 | 88 c2 08 d1 d2 23 88 c2 |.#.....#|.....#..|
|000002d0| 08 d3 c4 23 88 c2 08 d4 | c6 23 88 c2 08 d5 c8 23 |...#....|.#.....#|
|000002e0| 88 c2 08 d6 ca 23 88 c2 | 08 d7 cc 23 88 c2 08 d8 |.....#..|...#....|
|000002f0| ce 23 88 c2 08 d9 d0 23 | 88 c2 08 da d2 23 88 c2 |.#.....#|.....#..|
|00000300| 08 db d0 23 88 c2 08 dc | d2 23 88 c2 08 dd de 23 |...#....|.#.....#|
|00000310| 88 c2 08 df de 23 88 c2 | 08 e0 de 23 88 c2 08 e1 |.....#..|...#....|
|00000320| de 23 88 c2 08 e2 de 23 | 88 c2 08 e3 e4 23 88 c2 |.#.....#|.....#..|
|00000330| 08 e5 e6 23 88 c2 08 e7 | e8 23 88 c2 08 e9 de 23 |...#....|.#.....#|
|00000340| 88 c2 08 ea de 23 88 c2 | 08 eb ec 23 88 c2 08 ed |.....#..|...#....|
|00000350| ec 23 88 c2 08 ee ec 23 | 88 c2 08 ef ec 23 88 c2 |.#.....#|.....#..|
|00000360| 08 f0 f1 23 88 c2 08 f2 | f1 23 88 f3 f4 d2 08 f5 |...#....|.#......|
|00000370| 20 24 88 f3 f6 d0 08 f5 | 20 24 88 f3 f7 f8 08 f5 | $......| $......|
|00000380| 20 24 88 f3 f9 fa 08 f5 | 20 24 88 f3 fb e4 08 f5 | $......| $......|
|00000390| 20 24 88 f3 fc e4 08 f5 | 20 24 88 c1 87 22 20 5b | $......| $..." [|
|000003a0| 67 6f 6d 6f 6b 75 2d 6d | 6f 64 65 2d 6d 61 70 20 |gomoku-m|ode-map |
|000003b0| 6d 61 6b 65 2d 73 70 61 | 72 73 65 2d 6b 65 79 6d |make-spa|rse-keym|
|000003c0| 61 70 20 64 65 66 69 6e | 65 2d 6b 65 79 20 22 79 |ap defin|e-key "y|
|000003d0| 22 20 67 6f 6d 6f 6b 75 | 2d 6d 6f 76 65 2d 6e 77 |" gomoku|-move-nw|
|000003e0| 20 22 75 22 20 67 6f 6d | 6f 6b 75 2d 6d 6f 76 65 | "u" gom|oku-move|
|000003f0| 2d 6e 65 20 22 62 22 20 | 67 6f 6d 6f 6b 75 2d 6d |-ne "b" |gomoku-m|
|00000400| 6f 76 65 2d 73 77 20 22 | 6e 22 20 67 6f 6d 6f 6b |ove-sw "|n" gomok|
|00000410| 75 2d 6d 6f 76 65 2d 73 | 65 20 22 68 22 20 62 61 |u-move-s|e "h" ba|
|00000420| 63 6b 77 61 72 64 2d 63 | 68 61 72 20 22 6c 22 20 |ckward-c|har "l" |
|00000430| 66 6f 72 77 61 72 64 2d | 63 68 61 72 20 22 6a 22 |forward-|char "j"|
|00000440| 20 67 6f 6d 6f 6b 75 2d | 6d 6f 76 65 2d 64 6f 77 | gomoku-|move-dow|
|00000450| 6e 20 22 6b 22 20 67 6f | 6d 6f 6b 75 2d 6d 6f 76 |n "k" go|moku-mov|
|00000460| 65 2d 75 70 20 5b 6b 70 | 2d 37 5d 20 5b 6b 70 2d |e-up [kp|-7] [kp-|
|00000470| 39 5d 20 5b 6b 70 2d 31 | 5d 20 5b 6b 70 2d 33 5d |9] [kp-1|] [kp-3]|
|00000480| 20 5b 6b 70 2d 34 5d 20 | 5b 6b 70 2d 36 5d 20 5b | [kp-4] |[kp-6] [|
|00000490| 6b 70 2d 32 5d 20 5b 6b | 70 2d 38 5d 20 22 0e 22 |kp-2] [k|p-8] "."|
|000004a0| 20 22 10 22 20 22 58 22 | 20 67 6f 6d 6f 6b 75 2d | "." "X"| gomoku-|
|000004b0| 68 75 6d 61 6e 2d 70 6c | 61 79 73 20 22 78 22 20 |human-pl|ays "x" |
|000004c0| 22 20 22 20 22 0d 22 20 | 22 03 10 22 20 22 03 02 |" " "." |".." "..|
|000004d0| 22 20 67 6f 6d 6f 6b 75 | 2d 68 75 6d 61 6e 2d 74 |" gomoku|-human-t|
|000004e0| 61 6b 65 73 2d 62 61 63 | 6b 20 22 03 12 22 20 67 |akes-bac|k ".." g|
|000004f0| 6f 6d 6f 6b 75 2d 68 75 | 6d 61 6e 2d 72 65 73 69 |omoku-hu|man-resi|
|00000500| 67 6e 73 20 22 03 05 22 | 20 67 6f 6d 6f 6b 75 2d |gns ".."| gomoku-|
|00000510| 65 6d 61 63 73 2d 70 6c | 61 79 73 20 5b 6b 70 2d |emacs-pl|ays [kp-|
|00000520| 65 6e 74 65 72 5d 20 5b | 69 6e 73 65 72 74 5d 20 |enter] [|insert] |
|00000530| 5b 64 6f 77 6e 2d 6d 6f | 75 73 65 2d 31 5d 20 67 |[down-mo|use-1] g|
|00000540| 6f 6d 6f 6b 75 2d 63 6c | 69 63 6b 20 5b 64 72 61 |omoku-cl|ick [dra|
|00000550| 67 2d 6d 6f 75 73 65 2d | 31 5d 20 5b 6d 6f 75 73 |g-mouse-|1] [mous|
|00000560| 65 2d 31 5d 20 5b 64 6f | 77 6e 2d 6d 6f 75 73 65 |e-1] [do|wn-mouse|
|00000570| 2d 32 5d 20 5b 6d 6f 75 | 73 65 2d 32 5d 20 67 6f |-2] [mou|se-2] go|
|00000580| 6d 6f 6b 75 2d 6d 6f 75 | 73 65 2d 70 6c 61 79 20 |moku-mou|se-play |
|00000590| 5b 64 72 61 67 2d 6d 6f | 75 73 65 2d 32 5d 20 73 |[drag-mo|use-2] s|
|000005a0| 75 62 73 74 69 74 75 74 | 65 2d 6b 65 79 2d 64 65 |ubstitut|e-key-de|
|000005b0| 66 69 6e 69 74 69 6f 6e | 20 70 72 65 76 69 6f 75 |finition| previou|
|000005c0| 73 2d 6c 69 6e 65 20 63 | 75 72 72 65 6e 74 2d 67 |s-line c|urrent-g|
|000005d0| 6c 6f 62 61 6c 2d 6d 61 | 70 20 6e 65 78 74 2d 6c |lobal-ma|p next-l|
|000005e0| 69 6e 65 20 62 65 67 69 | 6e 6e 69 6e 67 2d 6f 66 |ine begi|nning-of|
|000005f0| 2d 6c 69 6e 65 20 67 6f | 6d 6f 6b 75 2d 62 65 67 |-line go|moku-beg|
|00000600| 69 6e 6e 69 6e 67 2d 6f | 66 2d 6c 69 6e 65 20 65 |inning-o|f-line e|
|00000610| 6e 64 2d 6f 66 2d 6c 69 | 6e 65 20 67 6f 6d 6f 6b |nd-of-li|ne gomok|
|00000620| 75 2d 65 6e 64 2d 6f 66 | 2d 6c 69 6e 65 20 75 6e |u-end-of|-line un|
|00000630| 64 6f 20 61 64 76 65 72 | 74 69 73 65 64 2d 75 6e |do adver|tised-un|
|00000640| 64 6f 5d 20 35 29 0a 23 | 40 35 39 20 2a 46 6f 72 |do] 5).#|@59 *For|
|00000650| 20 6d 61 6b 69 6e 67 20 | 66 6f 6e 74 2d 6c 6f 63 | making |font-loc|
|00000660| 6b 20 75 73 65 20 74 68 | 65 20 77 69 6e 6e 65 72 |k use th|e winner|
|00000670| 27 73 20 66 61 63 65 20 | 66 6f 72 20 74 68 65 20 |'s face |for the |
|00000680| 6c 69 6e 65 2e 1f 0a 28 | 64 65 66 76 61 72 20 67 |line...(|defvar g|
|00000690| 6f 6d 6f 6b 75 2d 65 6d | 61 63 73 2d 77 6f 6e 20 |omoku-em|acs-won |
|000006a0| 6e 69 6c 20 28 23 24 20 | 2e 20 2d 31 36 31 32 29 |nil (#$ |. -1612)|
|000006b0| 29 0a 23 40 32 38 20 2a | 46 61 63 65 20 74 6f 20 |).#@28 *|Face to |
|000006c0| 75 73 65 20 66 6f 72 20 | 45 6d 61 63 73 27 20 4f |use for |Emacs' O|
|000006d0| 2e 1f 0a 28 64 65 66 76 | 61 72 20 67 6f 6d 6f 6b |...(defv|ar gomok|
|000006e0| 75 2d 66 6f 6e 74 2d 6c | 6f 63 6b 2d 4f 2d 66 61 |u-font-l|ock-O-fa|
|000006f0| 63 65 20 28 62 79 74 65 | 2d 63 6f 64 65 20 22 08 |ce (byte|-code ".|
|00000700| 85 09 00 c1 c2 21 c3 44 | 87 22 20 5b 77 69 6e 64 |.....!.D|." [wind|
|00000710| 6f 77 2d 73 79 73 74 65 | 6d 20 66 61 63 65 6d 65 |ow-syste|m faceme|
|00000720| 6e 75 2d 67 65 74 2d 66 | 61 63 65 20 66 67 3a 72 |nu-get-f|ace fg:r|
|00000730| 65 64 20 62 6f 6c 64 5d | 20 32 29 20 28 23 24 20 |ed bold]| 2) (#$ |
|00000740| 2e 20 2d 31 37 31 39 29 | 29 0a 23 40 32 36 20 2a |. -1719)|).#@26 *|
|00000750| 46 61 63 65 20 74 6f 20 | 75 73 65 20 66 6f 72 20 |Face to |use for |
|00000760| 79 6f 75 72 20 58 2e 1f | 0a 28 64 65 66 76 61 72 |your X..|.(defvar|
|00000770| 20 67 6f 6d 6f 6b 75 2d | 66 6f 6e 74 2d 6c 6f 63 | gomoku-|font-loc|
|00000780| 6b 2d 58 2d 66 61 63 65 | 20 28 62 79 74 65 2d 63 |k-X-face| (byte-c|
|00000790| 6f 64 65 20 22 08 85 09 | 00 c1 c2 21 c3 44 87 22 |ode "...|...!.D."|
|000007a0| 20 5b 77 69 6e 64 6f 77 | 2d 73 79 73 74 65 6d 20 | [window|-system |
|000007b0| 66 61 63 65 6d 65 6e 75 | 2d 67 65 74 2d 66 61 63 |facemenu|-get-fac|
|000007c0| 65 20 66 67 3a 67 72 65 | 65 6e 20 62 6f 6c 64 5d |e fg:gre|en bold]|
|000007d0| 20 32 29 20 28 23 24 20 | 2e 20 2d 31 38 37 31 29 | 2) (#$ |. -1871)|
|000007e0| 29 0a 23 40 33 30 20 2a | 46 6f 6e 74 20 6c 6f 63 |).#@30 *|Font loc|
|000007f0| 6b 20 72 75 6c 65 73 20 | 66 6f 72 20 47 6f 6d 6f |k rules |for Gomo|
|00000800| 6b 75 2e 1f 0a 28 64 65 | 66 76 61 72 20 67 6f 6d |ku...(de|fvar gom|
|00000810| 6f 6b 75 2d 66 6f 6e 74 | 2d 6c 6f 63 6b 2d 6b 65 |oku-font|-lock-ke|
|00000820| 79 77 6f 72 64 73 20 28 | 71 75 6f 74 65 20 28 28 |ywords (|quote ((|
|00000830| 22 4f 22 20 2e 20 67 6f | 6d 6f 6b 75 2d 66 6f 6e |"O" . go|moku-fon|
|00000840| 74 2d 6c 6f 63 6b 2d 4f | 2d 66 61 63 65 29 20 28 |t-lock-O|-face) (|
|00000850| 22 58 22 20 2e 20 67 6f | 6d 6f 6b 75 2d 66 6f 6e |"X" . go|moku-fon|
|00000860| 74 2d 6c 6f 63 6b 2d 58 | 2d 66 61 63 65 29 20 28 |t-lock-X|-face) (|
|00000870| 22 5b 2d 7c 2f 5c 5c 5d | 22 20 30 20 28 69 66 20 |"[-|/\\]|" 0 (if |
|00000880| 67 6f 6d 6f 6b 75 2d 65 | 6d 61 63 73 2d 77 6f 6e |gomoku-e|macs-won|
|00000890| 20 67 6f 6d 6f 6b 75 2d | 66 6f 6e 74 2d 6c 6f 63 | gomoku-|font-loc|
|000008a0| 6b 2d 4f 2d 66 61 63 65 | 20 67 6f 6d 6f 6b 75 2d |k-O-face| gomoku-|
|000008b0| 66 6f 6e 74 2d 6c 6f 63 | 6b 2d 58 2d 66 61 63 65 |font-loc|k-X-face|
|000008c0| 29 29 29 29 20 28 23 24 | 20 2e 20 2d 32 30 32 33 |)))) (#$| . -2023|
|000008d0| 29 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |)).(byte|-code ".|
|000008e0| c1 c2 c0 c1 c3 c4 23 23 | 88 c0 c1 c5 c6 23 87 22 |......##|.....#."|
|000008f0| 20 5b 70 75 74 20 67 6f | 6d 6f 6b 75 2d 6d 6f 64 | [put go|moku-mod|
|00000900| 65 20 66 72 6f 6e 74 2d | 73 74 69 63 6b 79 20 72 |e front-|sticky r|
|00000910| 65 61 72 2d 6e 6f 6e 73 | 74 69 63 6b 79 20 28 69 |ear-nons|ticky (i|
|00000920| 6e 74 61 6e 67 69 62 6c | 65 29 20 69 6e 74 61 6e |ntangibl|e) intan|
|00000930| 67 69 62 6c 65 20 31 5d | 20 37 29 0a 23 40 35 30 |gible 1]| 7).#@50|
|00000940| 37 20 4d 61 6a 6f 72 20 | 6d 6f 64 65 20 66 6f 72 |7 Major |mode for|
|00000950| 20 70 6c 61 79 69 6e 67 | 20 47 6f 6d 6f 6b 75 20 | playing| Gomoku |
|00000960| 61 67 61 69 6e 73 74 20 | 45 6d 61 63 73 2e 0a 59 |against |Emacs..Y|
|00000970| 6f 75 20 61 6e 64 20 45 | 6d 61 63 73 20 70 6c 61 |ou and E|macs pla|
|00000980| 79 20 69 6e 20 74 75 72 | 6e 20 62 79 20 6d 61 72 |y in tur|n by mar|
|00000990| 6b 69 6e 67 20 61 20 66 | 72 65 65 20 73 71 75 61 |king a f|ree squa|
|000009a0| 72 65 2e 20 20 59 6f 75 | 20 6d 61 72 6b 20 69 74 |re. You| mark it|
|000009b0| 20 77 69 74 68 20 58 0a | 61 6e 64 20 45 6d 61 63 | with X.|and Emac|
|000009c0| 73 20 6d 61 72 6b 73 20 | 69 74 20 77 69 74 68 20 |s marks |it with |
|000009d0| 4f 2e 20 20 54 68 65 20 | 77 69 6e 6e 65 72 20 69 |O. The |winner i|
|000009e0| 73 20 74 68 65 20 66 69 | 72 73 74 20 74 6f 20 67 |s the fi|rst to g|
|000009f0| 65 74 20 66 69 76 65 20 | 63 6f 6e 74 69 67 75 6f |et five |contiguo|
|00000a00| 75 73 0a 6d 61 72 6b 73 | 20 68 6f 72 69 7a 6f 6e |us.marks| horizon|
|00000a10| 74 61 6c 6c 79 2c 20 76 | 65 72 74 69 63 61 6c 6c |tally, v|erticall|
|00000a20| 79 20 6f 72 20 69 6e 20 | 64 69 61 67 6f 6e 61 6c |y or in |diagonal|
|00000a30| 2e 0a 0a 59 6f 75 20 70 | 6c 61 79 20 62 79 20 6d |...You p|lay by m|
|00000a40| 6f 76 69 6e 67 20 74 68 | 65 20 63 75 72 73 6f 72 |oving th|e cursor|
|00000a50| 20 6f 76 65 72 20 74 68 | 65 20 73 71 75 61 72 65 | over th|e square|
|00000a60| 20 79 6f 75 20 63 68 6f | 6f 73 65 20 61 6e 64 20 | you cho|ose and |
|00000a70| 68 69 74 74 69 6e 67 20 | 5c 5b 67 6f 6d 6f 6b 75 |hitting |\[gomoku|
|00000a80| 2d 68 75 6d 61 6e 2d 70 | 6c 61 79 73 5d 2e 0a 0a |-human-p|lays]...|
|00000a90| 4f 74 68 65 72 20 75 73 | 65 66 75 6c 20 63 6f 6d |Other us|eful com|
|00000aa0| 6d 61 6e 64 73 3a 0a 5c | 7b 67 6f 6d 6f 6b 75 2d |mands:.\|{gomoku-|
|00000ab0| 6d 6f 64 65 2d 6d 61 70 | 7d 0a 45 6e 74 72 79 20 |mode-map|}.Entry |
|00000ac0| 74 6f 20 74 68 69 73 20 | 6d 6f 64 65 20 63 61 6c |to this |mode cal|
|00000ad0| 6c 73 20 74 68 65 20 76 | 61 6c 75 65 20 6f 66 20 |ls the v|alue of |
|00000ae0| 60 67 6f 6d 6f 6b 75 2d | 6d 6f 64 65 2d 68 6f 6f |`gomoku-|mode-hoo|
|00000af0| 6b 27 20 69 66 20 74 68 | 61 74 20 76 61 6c 75 65 |k' if th|at value|
|00000b00| 0a 69 73 20 6e 6f 6e 2d | 6e 69 6c 2e 20 20 4f 6e |.is non-|nil. On|
|00000b10| 65 20 69 6e 74 65 72 65 | 73 74 69 6e 67 20 76 61 |e intere|sting va|
|00000b20| 6c 75 65 20 69 73 20 60 | 74 75 72 6e 2d 6f 6e 2d |lue is `|turn-on-|
|00000b30| 66 6f 6e 74 2d 6c 6f 63 | 6b 27 2e 1f 0a 28 64 65 |font-loc|k'...(de|
|00000b40| 66 61 6c 69 61 73 20 27 | 67 6f 6d 6f 6b 75 2d 6d |falias '|gomoku-m|
|00000b50| 6f 64 65 20 23 5b 6e 69 | 6c 20 22 c0 11 c2 13 c4 |ode #[ni|l ".....|
|00000b60| 20 88 c5 0e 06 21 88 c7 | c8 21 88 c9 16 08 ca cb | ....!..|.!......|
|00000b70| 21 88 cc cd 21 87 22 20 | 5b 67 6f 6d 6f 6b 75 2d |!...!." |[gomoku-|
|00000b80| 6d 6f 64 65 20 6d 61 6a | 6f 72 2d 6d 6f 64 65 20 |mode maj|or-mode |
|00000b90| 22 47 6f 6d 6f 6b 75 22 | 20 6d 6f 64 65 2d 6e 61 |"Gomoku"| mode-na|
|00000ba0| 6d 65 20 67 6f 6d 6f 6b | 75 2d 64 69 73 70 6c 61 |me gomok|u-displa|
|00000bb0| 79 2d 73 74 61 74 69 73 | 74 69 63 73 20 75 73 65 |y-statis|tics use|
|00000bc0| 2d 6c 6f 63 61 6c 2d 6d | 61 70 20 67 6f 6d 6f 6b |-local-m|ap gomok|
|00000bd0| 75 2d 6d 6f 64 65 2d 6d | 61 70 20 6d 61 6b 65 2d |u-mode-m|ap make-|
|00000be0| 6c 6f 63 61 6c 2d 76 61 | 72 69 61 62 6c 65 20 66 |local-va|riable f|
|00000bf0| 6f 6e 74 2d 6c 6f 63 6b | 2d 64 65 66 61 75 6c 74 |ont-lock|-default|
|00000c00| 73 20 28 67 6f 6d 6f 6b | 75 2d 66 6f 6e 74 2d 6c |s (gomok|u-font-l|
|00000c10| 6f 63 6b 2d 6b 65 79 77 | 6f 72 64 73 20 74 29 20 |ock-keyw|ords t) |
|00000c20| 74 6f 67 67 6c 65 2d 72 | 65 61 64 2d 6f 6e 6c 79 |toggle-r|ead-only|
|00000c30| 20 74 20 72 75 6e 2d 68 | 6f 6f 6b 73 20 67 6f 6d | t run-h|ooks gom|
|00000c40| 6f 6b 75 2d 6d 6f 64 65 | 2d 68 6f 6f 6b 5d 20 32 |oku-mode|-hook] 2|
|00000c50| 20 28 23 24 20 2e 20 32 | 33 37 30 29 20 6e 69 6c | (#$ . 2|370) nil|
|00000c60| 5d 29 0a 23 40 34 30 20 | 4e 75 6d 62 65 72 20 6f |]).#@40 |Number o|
|00000c70| 66 20 63 6f 6c 75 6d 6e | 73 20 6f 6e 20 74 68 65 |f column|s on the|
|00000c80| 20 47 6f 6d 6f 6b 75 20 | 62 6f 61 72 64 2e 1f 0a | Gomoku |board...|
|00000c90| 28 64 65 66 76 61 72 20 | 67 6f 6d 6f 6b 75 2d 62 |(defvar |gomoku-b|
|00000ca0| 6f 61 72 64 2d 77 69 64 | 74 68 20 6e 69 6c 20 28 |oard-wid|th nil (|
|00000cb0| 23 24 20 2e 20 33 31 37 | 36 29 29 0a 23 40 33 38 |#$ . 317|6)).#@38|
|00000cc0| 20 4e 75 6d 62 65 72 20 | 6f 66 20 6c 69 6e 65 73 | Number |of lines|
|00000cd0| 20 6f 6e 20 74 68 65 20 | 47 6f 6d 6f 6b 75 20 62 | on the |Gomoku b|
|00000ce0| 6f 61 72 64 2e 1f 0a 28 | 64 65 66 76 61 72 20 67 |oard...(|defvar g|
|00000cf0| 6f 6d 6f 6b 75 2d 62 6f | 61 72 64 2d 68 65 69 67 |omoku-bo|ard-heig|
|00000d00| 68 74 20 6e 69 6c 20 28 | 23 24 20 2e 20 33 32 36 |ht nil (|#$ . 326|
|00000d10| 35 29 29 0a 23 40 35 36 | 20 56 65 63 74 6f 72 20 |5)).#@56| Vector |
|00000d20| 72 65 63 6f 72 64 69 6e | 67 20 74 68 65 20 61 63 |recordin|g the ac|
|00000d30| 74 75 61 6c 20 73 74 61 | 74 65 20 6f 66 20 74 68 |tual sta|te of th|
|00000d40| 65 20 47 6f 6d 6f 6b 75 | 20 62 6f 61 72 64 2e 1f |e Gomoku| board..|
|00000d50| 0a 28 64 65 66 76 61 72 | 20 67 6f 6d 6f 6b 75 2d |.(defvar| gomoku-|
|00000d60| 62 6f 61 72 64 20 6e 69 | 6c 20 28 23 24 20 2e 20 |board ni|l (#$ . |
|00000d70| 33 33 35 33 29 29 0a 23 | 40 33 32 20 4c 65 6e 67 |3353)).#|@32 Leng|
|00000d80| 74 68 20 6f 66 20 67 6f | 6d 6f 6b 75 2d 62 6f 61 |th of go|moku-boa|
|00000d90| 72 64 20 76 65 63 74 6f | 72 2e 1f 0a 28 64 65 66 |rd vecto|r...(def|
|00000da0| 76 61 72 20 67 6f 6d 6f | 6b 75 2d 76 65 63 74 6f |var gomo|ku-vecto|
|00000db0| 72 2d 6c 65 6e 67 74 68 | 20 6e 69 6c 20 28 23 24 |r-length| nil (#$|
|00000dc0| 20 2e 20 33 34 35 32 29 | 29 0a 23 40 34 37 20 41 | . 3452)|).#@47 A|
|00000dd0| 66 74 65 72 20 68 6f 77 | 20 6d 61 6e 79 20 6d 6f |fter how| many mo|
|00000de0| 76 65 73 20 77 69 6c 6c | 20 45 6d 61 63 73 20 6f |ves will| Emacs o|
|00000df0| 66 66 65 72 20 61 20 64 | 72 61 77 3f 1f 0a 28 64 |ffer a d|raw?..(d|
|00000e00| 65 66 76 61 72 20 67 6f | 6d 6f 6b 75 2d 64 72 61 |efvar go|moku-dra|
|00000e10| 77 2d 6c 69 6d 69 74 20 | 6e 69 6c 20 28 23 24 20 |w-limit |nil (#$ |
|00000e20| 2e 20 33 35 33 35 29 29 | 0a 23 40 36 39 20 54 72 |. 3535))|.#@69 Tr|
|00000e30| 61 6e 73 6c 61 74 65 20 | 58 2c 20 59 20 63 61 72 |anslate |X, Y car|
|00000e40| 74 65 73 69 61 6e 20 63 | 6f 6f 72 64 73 20 69 6e |tesian c|oords in|
|00000e50| 74 6f 20 74 68 65 20 63 | 6f 72 72 65 73 70 6f 6e |to the c|orrespon|
|00000e60| 64 69 6e 67 20 62 6f 61 | 72 64 20 69 6e 64 65 78 |ding boa|rd index|
|00000e70| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 67 6f |...(defa|lias 'go|
|00000e80| 6d 6f 6b 75 2d 78 79 2d | 74 6f 2d 69 6e 64 65 78 |moku-xy-|to-index|
|00000e90| 20 23 5b 28 78 20 79 29 | 20 22 08 09 5f 5c 6e 5c | #[(x y)| ".._\n\|
|00000ea0| 5c 08 5c 5c 87 22 20 5b | 79 20 67 6f 6d 6f 6b 75 |\.\\." [|y gomoku|
|00000eb0| 2d 62 6f 61 72 64 2d 77 | 69 64 74 68 20 78 5d 20 |-board-w|idth x] |
|00000ec0| 32 20 28 23 24 20 2e 20 | 33 36 33 30 29 5d 29 0a |2 (#$ . |3630)]).|
|00000ed0| 23 40 34 36 20 52 65 74 | 75 72 6e 20 63 6f 72 72 |#@46 Ret|urn corr|
|00000ee0| 65 73 70 6f 6e 64 69 6e | 67 20 78 2d 63 6f 6f 72 |espondin|g x-coor|
|00000ef0| 64 20 6f 66 20 62 6f 61 | 72 64 20 49 4e 44 45 58 |d of boa|rd INDEX|
|00000f00| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 67 6f |...(defa|lias 'go|
|00000f10| 6d 6f 6b 75 2d 69 6e 64 | 65 78 2d 74 6f 2d 78 20 |moku-ind|ex-to-x |
|00000f20| 23 5b 28 69 6e 64 65 78 | 29 20 22 08 09 54 a6 87 |#[(index|) "..T..|
|00000f30| 22 20 5b 69 6e 64 65 78 | 20 67 6f 6d 6f 6b 75 2d |" [index| gomoku-|
|00000f40| 62 6f 61 72 64 2d 77 69 | 64 74 68 5d 20 32 20 28 |board-wi|dth] 2 (|
|00000f50| 23 24 20 2e 20 33 37 39 | 37 29 5d 29 0a 23 40 34 |#$ . 379|7)]).#@4|
|00000f60| 36 20 52 65 74 75 72 6e | 20 63 6f 72 72 65 73 70 |6 Return| corresp|
|00000f70| 6f 6e 64 69 6e 67 20 79 | 2d 63 6f 6f 72 64 20 6f |onding y|-coord o|
|00000f80| 66 20 62 6f 61 72 64 20 | 49 4e 44 45 58 2e 1f 0a |f board |INDEX...|
|00000f90| 28 64 65 66 61 6c 69 61 | 73 20 27 67 6f 6d 6f 6b |(defalia|s 'gomok|
|00000fa0| 75 2d 69 6e 64 65 78 2d | 74 6f 2d 79 20 23 5b 28 |u-index-|to-y #[(|
|00000fb0| 69 6e 64 65 78 29 20 22 | 08 09 54 a5 87 22 20 5b |index) "|..T.." [|
|00000fc0| 69 6e 64 65 78 20 67 6f | 6d 6f 6b 75 2d 62 6f 61 |index go|moku-boa|
|00000fd0| 72 64 2d 77 69 64 74 68 | 5d 20 32 20 28 23 24 20 |rd-width|] 2 (#$ |
|00000fe0| 2e 20 33 39 33 38 29 5d | 29 0a 23 40 36 35 20 43 |. 3938)]|).#@65 C|
|00000ff0| 72 65 61 74 65 20 74 68 | 65 20 67 6f 6d 6f 6b 75 |reate th|e gomoku|
|00001000| 2d 62 6f 61 72 64 20 76 | 65 63 74 6f 72 20 61 6e |-board v|ector an|
|00001010| 64 20 66 69 6c 6c 20 69 | 74 20 77 69 74 68 20 69 |d fill i|t with i|
|00001020| 6e 69 74 69 61 6c 20 76 | 61 6c 75 65 73 2e 1f 0a |nitial v|alues...|
|00001030| 28 64 65 66 61 6c 69 61 | 73 20 27 67 6f 6d 6f 6b |(defalia|s 'gomok|
|00001040| 75 2d 69 6e 69 74 2d 62 | 6f 61 72 64 20 23 5b 6e |u-init-b|oard #[n|
|00001050| 69 6c 20 22 c0 09 c2 5c | 22 13 c2 09 53 1c 1d 0d |il "...\|"...S...|
|00001060| 0e 06 58 83 24 00 0b 0d | c7 49 88 0b 5c 66 c7 49 |..X.$...|.I..\f.I|
|00001070| 88 0d 54 15 5c 66 53 14 | 82 5c 6e 00 2a c2 1d c2 |..T.\fS.|.\n.*...|
|00001080| 09 57 85 3d 00 0b 0d c7 | 49 88 0d 0e 06 5c 5c c8 |.W.=....|I....\\.|
|00001090| 5c 5c 89 15 82 28 00 29 | 87 22 20 5b 6d 61 6b 65 |\\...(.)|." [make|
|000010a0| 2d 76 65 63 74 6f 72 20 | 67 6f 6d 6f 6b 75 2d 76 |-vector |gomoku-v|
|000010b0| 65 63 74 6f 72 2d 6c 65 | 6e 67 74 68 20 30 20 67 |ector-le|ngth 0 g|
|000010c0| 6f 6d 6f 6b 75 2d 62 6f | 61 72 64 20 69 69 20 69 |omoku-bo|ard ii i|
|000010d0| 20 67 6f 6d 6f 6b 75 2d | 62 6f 61 72 64 2d 77 69 | gomoku-|board-wi|
|000010e0| 64 74 68 20 2d 31 20 31 | 5d 20 34 20 28 23 24 20 |dth -1 1|] 4 (#$ |
|000010f0| 2e 20 34 30 37 39 29 5d | 29 0a 23 40 35 36 20 56 |. 4079)]|).#@56 V|
|00001100| 65 63 74 6f 72 20 72 65 | 63 6f 72 64 69 6e 67 20 |ector re|cording |
|00001110| 74 68 65 20 61 63 74 75 | 61 6c 20 73 63 6f 72 65 |the actu|al score|
|00001120| 20 6f 66 20 74 68 65 20 | 66 72 65 65 20 73 71 75 | of the |free squ|
|00001130| 61 72 65 73 2e 1f 0a 28 | 64 65 66 76 61 72 20 67 |ares...(|defvar g|
|00001140| 6f 6d 6f 6b 75 2d 73 63 | 6f 72 65 2d 74 61 62 6c |omoku-sc|ore-tabl|
|00001150| 65 20 6e 69 6c 20 28 23 | 24 20 2e 20 34 33 35 31 |e nil (#|$ . 4351|
|00001160| 29 29 0a 23 40 32 37 20 | 53 63 6f 72 65 20 6f 66 |)).#@27 |Score of|
|00001170| 20 61 6e 20 65 6d 70 74 | 79 20 71 74 75 70 6c 65 | an empt|y qtuple|
|00001180| 2e 1f 0a 28 64 65 66 63 | 6f 6e 73 74 20 6e 69 6c |...(defc|onst nil|
|00001190| 2d 73 63 6f 72 65 20 37 | 20 28 23 24 20 2e 20 34 |-score 7| (#$ . 4|
|000011a0| 34 35 36 29 29 0a 23 40 | 33 37 20 53 63 6f 72 65 |456)).#@|37 Score|
|000011b0| 20 6f 66 20 61 20 71 74 | 75 70 6c 65 20 63 6f 6e | of a qt|uple con|
|000011c0| 74 61 69 6e 69 6e 67 20 | 6f 6e 65 20 58 2e 1f 0a |taining |one X...|
|000011d0| 28 64 65 66 63 6f 6e 73 | 74 20 58 73 63 6f 72 65 |(defcons|t Xscore|
|000011e0| 20 31 35 20 28 23 24 20 | 2e 20 34 35 32 33 29 29 | 15 (#$ |. 4523))|
|000011f0| 0a 23 40 33 39 20 53 63 | 6f 72 65 20 6f 66 20 61 |.#@39 Sc|ore of a|
|00001200| 20 71 74 75 70 6c 65 20 | 63 6f 6e 74 61 69 6e 69 | qtuple |containi|
|00001210| 6e 67 20 74 77 6f 20 58 | 27 73 2e 1f 0a 28 64 65 |ng two X|'s...(de|
|00001220| 66 63 6f 6e 73 74 20 58 | 58 73 63 6f 72 65 20 34 |fconst X|Xscore 4|
|00001230| 30 30 20 28 23 24 20 2e | 20 34 35 39 38 29 29 0a |00 (#$ .| 4598)).|
|00001240| 23 40 34 31 20 53 63 6f | 72 65 20 6f 66 20 61 20 |#@41 Sco|re of a |
|00001250| 71 74 75 70 6c 65 20 63 | 6f 6e 74 61 69 6e 69 6e |qtuple c|ontainin|
|00001260| 67 20 74 68 72 65 65 20 | 58 27 73 2e 1f 0a 28 64 |g three |X's...(d|
|00001270| 65 66 63 6f 6e 73 74 20 | 58 58 58 73 63 6f 72 65 |efconst |XXXscore|
|00001280| 20 31 38 30 30 20 28 23 | 24 20 2e 20 34 36 37 37 | 1800 (#|$ . 4677|
|00001290| 29 29 0a 23 40 34 30 20 | 53 63 6f 72 65 20 6f 66 |)).#@40 |Score of|
|000012a0| 20 61 20 71 74 75 70 6c | 65 20 63 6f 6e 74 61 69 | a qtupl|e contai|
|000012b0| 6e 69 6e 67 20 66 6f 75 | 72 20 58 27 73 2e 1f 0a |ning fou|r X's...|
|000012c0| 28 64 65 66 63 6f 6e 73 | 74 20 58 58 58 58 73 63 |(defcons|t XXXXsc|
|000012d0| 6f 72 65 20 31 30 30 30 | 30 30 20 28 23 24 20 2e |ore 1000|00 (#$ .|
|000012e0| 20 34 37 36 30 29 29 0a | 23 40 33 37 20 53 63 6f | 4760)).|#@37 Sco|
|000012f0| 72 65 20 6f 66 20 61 20 | 71 74 75 70 6c 65 20 63 |re of a |qtuple c|
|00001300| 6f 6e 74 61 69 6e 69 6e | 67 20 6f 6e 65 20 4f 2e |ontainin|g one O.|
|00001310| 1f 0a 28 64 65 66 63 6f | 6e 73 74 20 4f 73 63 6f |..(defco|nst Osco|
|00001320| 72 65 20 33 35 20 28 23 | 24 20 2e 20 34 38 34 35 |re 35 (#|$ . 4845|
|00001330| 29 29 0a 23 40 33 39 20 | 53 63 6f 72 65 20 6f 66 |)).#@39 |Score of|
|00001340| 20 61 20 71 74 75 70 6c | 65 20 63 6f 6e 74 61 69 | a qtupl|e contai|
|00001350| 6e 69 6e 67 20 74 77 6f | 20 4f 27 73 2e 1f 0a 28 |ning two| O's...(|
|00001360| 64 65 66 63 6f 6e 73 74 | 20 4f 4f 73 63 6f 72 65 |defconst| OOscore|
|00001370| 20 38 30 30 20 28 23 24 | 20 2e 20 34 39 32 30 29 | 800 (#$| . 4920)|
|00001380| 29 0a 23 40 34 31 20 53 | 63 6f 72 65 20 6f 66 20 |).#@41 S|core of |
|00001390| 61 20 71 74 75 70 6c 65 | 20 63 6f 6e 74 61 69 6e |a qtuple| contain|
|000013a0| 69 6e 67 20 74 68 72 65 | 65 20 4f 27 73 2e 1f 0a |ing thre|e O's...|
|000013b0| 28 64 65 66 63 6f 6e 73 | 74 20 4f 4f 4f 73 63 6f |(defcons|t OOOsco|
|000013c0| 72 65 20 31 35 30 30 30 | 20 28 23 24 20 2e 20 34 |re 15000| (#$ . 4|
|000013d0| 39 39 39 29 29 0a 23 40 | 34 30 20 53 63 6f 72 65 |999)).#@|40 Score|
|000013e0| 20 6f 66 20 61 20 71 74 | 75 70 6c 65 20 63 6f 6e | of a qt|uple con|
|000013f0| 74 61 69 6e 69 6e 67 20 | 66 6f 75 72 20 4f 27 73 |taining |four O's|
|00001400| 2e 1f 0a 28 64 65 66 63 | 6f 6e 73 74 20 4f 4f 4f |...(defc|onst OOO|
|00001410| 4f 73 63 6f 72 65 20 38 | 30 30 30 30 30 20 28 23 |Oscore 8|00000 (#|
|00001420| 24 20 2e 20 35 30 38 33 | 29 29 0a 23 40 35 32 20 |$ . 5083|)).#@52 |
|00001430| 56 65 63 74 6f 72 20 61 | 73 73 6f 63 69 61 74 69 |Vector a|ssociati|
|00001440| 6e 67 20 71 74 75 70 6c | 65 20 63 6f 6e 74 65 6e |ng qtupl|e conten|
|00001450| 74 73 20 74 6f 20 74 68 | 65 69 72 20 73 63 6f 72 |ts to th|eir scor|
|00001460| 65 2e 1f 0a 28 64 65 66 | 63 6f 6e 73 74 20 67 6f |e...(def|const go|
|00001470| 6d 6f 6b 75 2d 73 63 6f | 72 65 2d 74 72 61 6e 73 |moku-sco|re-trans|
|00001480| 2d 74 61 62 6c 65 20 28 | 62 79 74 65 2d 63 6f 64 |-table (|byte-cod|
|00001490| 65 20 22 c0 09 5c 6e 0b | 5c 66 0d c6 0e 07 c6 89 |e "..\n.|\f......|
|000014a0| 89 89 89 0e 08 c6 89 89 | 89 89 0e 09 c6 89 89 89 |........|........|
|000014b0| 89 0e 5c 6e c6 89 89 89 | 89 89 26 1f 87 22 20 5b |..\n....|..&.." [|
|000014c0| 76 65 63 74 6f 72 20 6e | 69 6c 2d 73 63 6f 72 65 |vector n|il-score|
|000014d0| 20 58 73 63 6f 72 65 20 | 58 58 73 63 6f 72 65 20 | Xscore |XXscore |
|000014e0| 58 58 58 73 63 6f 72 65 | 20 58 58 58 58 73 63 6f |XXXscore| XXXXsco|
|000014f0| 72 65 20 30 20 4f 73 63 | 6f 72 65 20 4f 4f 73 63 |re 0 Osc|ore OOsc|
|00001500| 6f 72 65 20 4f 4f 4f 73 | 63 6f 72 65 20 4f 4f 4f |ore OOOs|core OOO|
|00001510| 4f 73 63 6f 72 65 5d 20 | 33 32 29 20 28 23 24 20 |Oscore] |32) (#$ |
|00001520| 2e 20 35 31 36 38 29 29 | 0a 23 40 35 36 20 54 68 |. 5168))|.#@56 Th|
|00001530| 72 65 73 68 6f 6c 64 20 | 73 63 6f 72 65 20 62 65 |reshold |score be|
|00001540| 79 6f 6e 64 20 77 68 69 | 63 68 20 61 6e 20 45 6d |yond whi|ch an Em|
|00001550| 61 63 73 20 6d 6f 76 65 | 20 69 73 20 77 69 6e 6e |acs move| is winn|
|00001560| 69 6e 67 2e 1f 0a 28 64 | 65 66 63 6f 6e 73 74 20 |ing...(d|efconst |
|00001570| 67 6f 6d 6f 6b 75 2d 77 | 69 6e 6e 69 6e 67 2d 74 |gomoku-w|inning-t|
|00001580| 68 72 65 73 68 6f 6c 64 | 20 4f 4f 4f 4f 73 63 6f |hreshold| OOOOsco|
|00001590| 72 65 20 28 23 24 20 2e | 20 35 34 32 32 29 29 0a |re (#$ .| 5422)).|
|000015a0| 23 40 35 35 20 54 68 72 | 65 73 68 6f 6c 64 20 73 |#@55 Thr|eshold s|
|000015b0| 63 6f 72 65 20 62 65 79 | 6f 6e 64 20 77 68 69 63 |core bey|ond whic|
|000015c0| 68 20 61 20 68 75 6d 61 | 6e 20 6d 6f 76 65 20 69 |h a huma|n move i|
|000015d0| 73 20 77 69 6e 6e 69 6e | 67 2e 1f 0a 28 64 65 66 |s winnin|g...(def|
|000015e0| 63 6f 6e 73 74 20 67 6f | 6d 6f 6b 75 2d 6c 6f 6f |const go|moku-loo|
|000015f0| 73 69 6e 67 2d 74 68 72 | 65 73 68 6f 6c 64 20 58 |sing-thr|eshold X|
|00001600| 58 58 58 73 63 6f 72 65 | 20 28 23 24 20 2e 20 35 |XXXscore| (#$ . 5|
|00001610| 35 34 31 29 29 0a 23 40 | 36 36 20 43 6f 6d 70 75 |541)).#@|66 Compu|
|00001620| 74 65 20 69 6e 64 65 78 | 20 6f 66 20 66 72 65 65 |te index| of free|
|00001630| 20 73 71 75 61 72 65 20 | 77 69 74 68 20 68 69 67 | square |with hig|
|00001640| 68 65 73 74 20 73 63 6f | 72 65 2c 20 6f 72 20 6e |hest sco|re, or n|
|00001650| 69 6c 20 69 66 20 6e 6f | 6e 65 2e 1f 0a 28 64 65 |il if no|ne...(de|
|00001660| 66 61 6c 69 61 73 20 27 | 67 6f 6d 6f 6b 75 2d 73 |falias '|gomoku-s|
|00001670| 74 72 6f 6e 67 65 73 74 | 2d 73 71 75 61 72 65 20 |trongest|-square |
|00001680| 23 5b 6e 69 6c 20 22 c0 | 89 c1 c2 89 5c 22 c1 0b |#[nil ".|....\"..|
|00001690| 5c 66 5c 22 c5 89 1e 06 | 1e 07 1e 08 1e 09 1e 5c |\f\"....|.......\|
|000016a0| 6e 1e 0b 0e 09 0e 08 58 | 83 8d 00 0e 5c 66 0e 09 |n......X|....\f..|
|000016b0| 48 0e 0b 57 84 84 00 0e | 5c 66 0e 09 48 89 16 06 |H..W....|\f..H...|
|000016c0| 0e 0b 56 83 5b 00 0e 0d | 0e 09 48 c0 55 83 51 00 |..V.[...|..H.U.Q.|
|000016d0| c2 16 5c 6e 0e 09 16 07 | 0e 06 16 0b 82 84 00 0e |..\n....|........|
|000016e0| 5c 66 0e 09 ce 49 88 82 | 84 00 0e 0d 0e 09 48 c0 |\f...I..|......H.|
|000016f0| 55 84 6f 00 0e 5c 66 0e | 09 ce 49 88 82 84 00 cf |U.o..\f.|..I.....|
|00001700| 0e 5c 6e 54 89 16 5c 6e | 21 c0 55 83 84 00 0e 09 |.\nT..\n|!.U.....|
|00001710| 16 07 0e 06 16 0b 0e 09 | 54 89 16 09 82 1a 00 0e |........|T.......|
|00001720| 07 2e 06 87 22 20 5b 30 | 20 67 6f 6d 6f 6b 75 2d |...." [0| gomoku-|
|00001730| 78 79 2d 74 6f 2d 69 6e | 64 65 78 20 31 20 67 6f |xy-to-in|dex 1 go|
|00001740| 6d 6f 6b 75 2d 62 6f 61 | 72 64 2d 77 69 64 74 68 |moku-boa|rd-width|
|00001750| 20 67 6f 6d 6f 6b 75 2d | 62 6f 61 72 64 2d 68 65 | gomoku-|board-he|
|00001760| 69 67 68 74 20 6e 69 6c | 20 73 63 6f 72 65 20 62 |ight nil| score b|
|00001770| 65 73 74 2d 73 71 75 61 | 72 65 20 65 6e 64 20 73 |est-squa|re end s|
|00001780| 71 75 61 72 65 20 63 6f | 75 6e 74 20 73 63 6f 72 |quare co|unt scor|
|00001790| 65 2d 6d 61 78 20 67 6f | 6d 6f 6b 75 2d 73 63 6f |e-max go|moku-sco|
|000017a0| 72 65 2d 74 61 62 6c 65 | 20 67 6f 6d 6f 6b 75 2d |re-table| gomoku-|
|000017b0| 62 6f 61 72 64 20 2d 31 | 20 72 61 6e 64 6f 6d 5d |board -1| random]|
|000017c0| 20 37 20 28 23 24 20 2e | 20 35 36 35 39 29 5d 29 | 7 (#$ .| 5659)])|
|000017d0| 0a 23 40 34 39 20 52 65 | 63 6f 72 64 65 64 20 69 |.#@49 Re|corded i|
|000017e0| 6e 69 74 69 61 6c 20 76 | 61 6c 75 65 20 6f 66 20 |nitial v|alue of |
|000017f0| 70 72 65 76 69 6f 75 73 | 20 73 63 6f 72 65 20 74 |previous| score t|
|00001800| 61 62 6c 65 2e 1f 0a 28 | 64 65 66 76 61 72 20 67 |able...(|defvar g|
|00001810| 6f 6d 6f 6b 75 2d 73 61 | 76 65 64 2d 73 63 6f 72 |omoku-sa|ved-scor|
|00001820| 65 2d 74 61 62 6c 65 20 | 6e 69 6c 20 28 23 24 20 |e-table |nil (#$ |
|00001830| 2e 20 36 31 30 32 29 29 | 0a 23 40 34 31 20 52 65 |. 6102))|.#@41 Re|
|00001840| 63 6f 72 64 65 64 20 76 | 61 6c 75 65 20 6f 66 20 |corded v|alue of |
|00001850| 70 72 65 76 69 6f 75 73 | 20 62 6f 61 72 64 20 77 |previous| board w|
|00001860| 69 64 74 68 2e 1f 0a 28 | 64 65 66 76 61 72 20 67 |idth...(|defvar g|
|00001870| 6f 6d 6f 6b 75 2d 73 61 | 76 65 64 2d 62 6f 61 72 |omoku-sa|ved-boar|
|00001880| 64 2d 77 69 64 74 68 20 | 6e 69 6c 20 28 23 24 20 |d-width |nil (#$ |
|00001890| 2e 20 36 32 30 36 29 29 | 0a 23 40 34 32 20 52 65 |. 6206))|.#@42 Re|
|000018a0| 63 6f 72 64 65 64 20 76 | 61 6c 75 65 20 6f 66 20 |corded v|alue of |
|000018b0| 70 72 65 76 69 6f 75 73 | 20 62 6f 61 72 64 20 68 |previous| board h|
|000018c0| 65 69 67 68 74 2e 1f 0a | 28 64 65 66 76 61 72 20 |eight...|(defvar |
|000018d0| 67 6f 6d 6f 6b 75 2d 73 | 61 76 65 64 2d 62 6f 61 |gomoku-s|aved-boa|
|000018e0| 72 64 2d 68 65 69 67 68 | 74 20 6e 69 6c 20 28 23 |rd-heigh|t nil (#|
|000018f0| 24 20 2e 20 36 33 30 32 | 29 29 0a 23 40 36 34 20 |$ . 6302|)).#@64 |
|00001900| 43 72 65 61 74 65 20 74 | 68 65 20 73 63 6f 72 65 |Create t|he score|
|00001910| 20 74 61 62 6c 65 20 76 | 65 63 74 6f 72 20 61 6e | table v|ector an|
|00001920| 64 20 66 69 6c 6c 20 69 | 74 20 77 69 74 68 20 69 |d fill i|t with i|
|00001930| 6e 69 74 69 61 6c 20 76 | 61 6c 75 65 73 2e 1f 0a |nitial v|alues...|
|00001940| 28 64 65 66 61 6c 69 61 | 73 20 27 67 6f 6d 6f 6b |(defalia|s 'gomok|
|00001950| 75 2d 69 6e 69 74 2d 73 | 63 6f 72 65 2d 74 61 62 |u-init-s|core-tab|
|00001960| 6c 65 20 23 5b 6e 69 6c | 20 22 08 83 17 00 09 5c |le #[nil| ".....\|
|00001970| 6e 55 83 17 00 0b 5c 66 | 55 83 17 00 c5 08 21 89 |nU....\f|U.....!.|
|00001980| 16 06 87 c7 0e 08 0e 09 | ca 5f 5c 22 16 06 cb 89 |........|._\"....|
|00001990| 89 89 89 89 1e 5c 66 1e | 0d 1e 0e 1e 0f 1e 10 1e |.....\f.|........|
|000019a0| 11 09 54 d2 a5 16 0f 0b | 54 d2 a5 16 0e d3 0e 0f |..T.....|T.......|
|000019b0| 5e 16 0d d3 0e 0e 5e 16 | 5c 66 d4 16 11 d4 0e 0d |^.....^.|\f......|
|000019c0| 58 83 78 00 d4 16 10 d4 | 0e 0e 58 83 6f 00 d5 0e |X.x.....|..X.o...|
|000019d0| 11 0e 10 5c 22 88 0e 10 | 54 89 16 10 82 59 00 0e |...\"...|T....Y..|
|000019e0| 11 54 89 16 11 82 4f 00 | 0e 11 0e 0f 58 83 a3 00 |.T....O.|....X...|
|000019f0| d4 16 10 d4 0e 5c 66 58 | 83 9a 00 d5 0e 11 0e 10 |.....\fX|........|
|00001a00| 5c 22 88 0e 10 54 89 16 | 10 82 84 00 0e 11 54 89 |\"...T..|......T.|
|00001a10| 16 11 82 7a 00 2e 06 c5 | 0e 06 21 10 09 12 0b 89 |...z....|..!.....|
|00001a20| 14 87 22 20 5b 67 6f 6d | 6f 6b 75 2d 73 61 76 65 |.." [gom|oku-save|
|00001a30| 64 2d 73 63 6f 72 65 2d | 74 61 62 6c 65 20 67 6f |d-score-|table go|
|00001a40| 6d 6f 6b 75 2d 62 6f 61 | 72 64 2d 77 69 64 74 68 |moku-boa|rd-width|
|00001a50| 20 67 6f 6d 6f 6b 75 2d | 73 61 76 65 64 2d 62 6f | gomoku-|saved-bo|
|00001a60| 61 72 64 2d 77 69 64 74 | 68 20 67 6f 6d 6f 6b 75 |ard-widt|h gomoku|
|00001a70| 2d 62 6f 61 72 64 2d 68 | 65 69 67 68 74 20 67 6f |-board-h|eight go|
|00001a80| 6d 6f 6b 75 2d 73 61 76 | 65 64 2d 62 6f 61 72 64 |moku-sav|ed-board|
|00001a90| 2d 68 65 69 67 68 74 20 | 63 6f 70 79 2d 73 65 71 |-height |copy-seq|
|00001aa0| 75 65 6e 63 65 20 67 6f | 6d 6f 6b 75 2d 73 63 6f |uence go|moku-sco|
|00001ab0| 72 65 2d 74 61 62 6c 65 | 20 6d 61 6b 65 2d 76 65 |re-table| make-ve|
|00001ac0| 63 74 6f 72 20 67 6f 6d | 6f 6b 75 2d 76 65 63 74 |ctor gom|oku-vect|
|00001ad0| 6f 72 2d 6c 65 6e 67 74 | 68 20 6e 69 6c 2d 73 63 |or-lengt|h nil-sc|
|00001ae0| 6f 72 65 20 32 30 20 6e | 69 6c 20 6d 61 78 6a 32 |ore 20 n|il maxj2|
|00001af0| 20 6d 61 78 69 32 20 6d | 61 78 6a 20 6d 61 78 69 | maxi2 m|axj maxi|
|00001b00| 20 6a 20 69 20 32 20 34 | 20 31 20 67 6f 6d 6f 6b | j i 2 4| 1 gomok|
|00001b10| 75 2d 69 6e 69 74 2d 73 | 71 75 61 72 65 2d 73 63 |u-init-s|quare-sc|
|00001b20| 6f 72 65 5d 20 37 20 28 | 23 24 20 2e 20 36 34 30 |ore] 7 (|#$ . 640|
|00001b30| 30 29 5d 29 0a 23 40 35 | 33 20 52 65 74 75 72 6e |0)]).#@5|3 Return|
|00001b40| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 71 | the num|ber of q|
|00001b50| 74 75 70 6c 65 73 20 63 | 6f 6e 74 61 69 6e 69 6e |tuples c|ontainin|
|00001b60| 67 20 73 71 75 61 72 65 | 20 49 2c 4a 2e 1f 0a 28 |g square| I,J...(|
|00001b70| 64 65 66 61 6c 69 61 73 | 20 27 67 6f 6d 6f 6b 75 |defalias| 'gomoku|
|00001b80| 2d 6e 62 2d 71 74 75 70 | 6c 65 73 20 23 5b 28 69 |-nb-qtup|les #[(i|
|00001b90| 20 6a 29 20 22 c0 09 53 | 5e c0 5c 6e 09 5a 5e c0 | j) "..S|^.\n.Z^.|
|00001ba0| 0b 53 5e c0 5c 66 0b 5a | 5e 1d 1e 06 1e 07 89 1e |.S^.\f.Z|^.......|
|00001bb0| 08 0e 07 5c 5c c9 5d ca | 5e 0e 06 0d 5c 5c c9 5d |...\\.].|^...\\.]|
|00001bc0| ca 5e 5c 5c 0e 08 0e 06 | 5e 0e 07 0d 5e 5c 5c c9 |.^\\....|^...^\\.|
|00001bd0| 5d ca 5e 5c 5c 0e 07 0e | 06 5e 0e 08 0d 5e 5c 5c |].^\\...|.^...^\\|
|00001be0| c9 5d ca 5e 5c 5c cb 5c | 5c 2c 87 22 20 5b 34 20 |.].^\\.\|\,." [4 |
|00001bf0| 69 20 67 6f 6d 6f 6b 75 | 2d 62 6f 61 72 64 2d 77 |i gomoku|-board-w|
|00001c00| 69 64 74 68 20 6a 20 67 | 6f 6d 6f 6b 75 2d 62 6f |idth j g|omoku-bo|
|00001c10| 61 72 64 2d 68 65 69 67 | 68 74 20 64 6f 77 6e 20 |ard-heig|ht down |
|00001c20| 75 70 20 72 69 67 68 74 | 20 6c 65 66 74 20 33 20 |up right| left 3 |
|00001c30| 38 20 2d 31 32 5d 20 37 | 20 28 23 24 20 2e 20 36 |8 -12] 7| (#$ . 6|
|00001c40| 39 37 30 29 5d 29 0a 23 | 40 36 30 20 47 69 76 65 |970)]).#|@60 Give|
|00001c50| 20 69 6e 69 74 69 61 6c | 20 73 63 6f 72 65 20 74 | initial| score t|
|00001c60| 6f 20 73 71 75 61 72 65 | 20 49 2c 4a 20 61 6e 64 |o square| I,J and|
|00001c70| 20 74 6f 20 69 74 73 20 | 6d 69 72 72 6f 72 20 69 | to its |mirror i|
|00001c80| 6d 61 67 65 73 2e 1f 0a | 28 64 65 66 61 6c 69 61 |mages...|(defalia|
|00001c90| 73 20 27 67 6f 6d 6f 6b | 75 2d 69 6e 69 74 2d 73 |s 'gomok|u-init-s|
|00001ca0| 71 75 61 72 65 2d 73 63 | 6f 72 65 20 23 5b 28 69 |quare-sc|ore #[(i|
|00001cb0| 20 6a 29 20 22 08 09 5a | 54 5c 6e 0b 5a 54 c4 09 | j) "..Z|T\n.ZT..|
|00001cc0| 0b 5c 22 0d c6 48 5f 1e | 07 1e 08 1e 09 0e 5c 6e |.\"..H_.|......\n|
|00001cd0| cb 09 0b 5c 22 0e 07 49 | 88 0e 5c 6e cb 0e 09 0b |...\"..I|..\n....|
|00001ce0| 5c 22 0e 07 49 88 0e 5c | 6e cb 09 0e 08 5c 22 0e |\"..I..\|n....\".|
|00001cf0| 07 49 88 0e 5c 6e cb 0e | 09 0e 08 5c 22 0e 07 49 |.I..\n..|...\"..I|
|00001d00| 2b 87 22 20 5b 67 6f 6d | 6f 6b 75 2d 62 6f 61 72 |+." [gom|oku-boar|
|00001d10| 64 2d 77 69 64 74 68 20 | 69 20 67 6f 6d 6f 6b 75 |d-width |i gomoku|
|00001d20| 2d 62 6f 61 72 64 2d 68 | 65 69 67 68 74 20 6a 20 |-board-h|eight j |
|00001d30| 67 6f 6d 6f 6b 75 2d 6e | 62 2d 71 74 75 70 6c 65 |gomoku-n|b-qtuple|
|00001d40| 73 20 67 6f 6d 6f 6b 75 | 2d 73 63 6f 72 65 2d 74 |s gomoku|-score-t|
|00001d50| 72 61 6e 73 2d 74 61 62 | 6c 65 20 30 20 73 63 20 |rans-tab|le 0 sc |
|00001d60| 6a 6a 20 69 69 20 67 6f | 6d 6f 6b 75 2d 73 63 6f |jj ii go|moku-sco|
|00001d70| 72 65 2d 74 61 62 6c 65 | 20 67 6f 6d 6f 6b 75 2d |re-table| gomoku-|
|00001d80| 78 79 2d 74 6f 2d 69 6e | 64 65 78 5d 20 35 20 28 |xy-to-in|dex] 5 (|
|00001d90| 23 24 20 2e 20 37 32 34 | 34 29 5d 29 0a 23 40 36 |#$ . 724|4)]).#@6|
|00001da0| 30 20 55 70 64 61 74 65 | 20 73 63 6f 72 65 20 74 |0 Update| score t|
|00001db0| 61 62 6c 65 20 61 66 74 | 65 72 20 53 51 55 41 52 |able aft|er SQUAR|
|00001dc0| 45 20 72 65 63 65 69 76 | 65 64 20 61 20 44 56 41 |E receiv|ed a DVA|
|00001dd0| 4c 20 69 6e 63 72 65 6d | 65 6e 74 2e 1f 0a 28 64 |L increm|ent...(d|
|00001de0| 65 66 61 6c 69 61 73 20 | 27 67 6f 6d 6f 6b 75 2d |efalias |'gomoku-|
|00001df0| 75 70 64 61 74 65 2d 73 | 63 6f 72 65 2d 74 61 62 |update-s|core-tab|
|00001e00| 6c 65 20 23 5b 28 73 71 | 75 61 72 65 20 64 76 61 |le #[(sq|uare dva|
|00001e10| 6c 29 20 22 c0 09 21 1a | c3 09 21 1c c5 c6 5c 6e |l) "..!.|..!...\n|
|00001e20| 5a 5d 1e 07 c5 c6 5c 66 | 5a 5d 1e 08 c9 0e 5c 6e |Z]....\f|Z]....\n|
|00001e30| 5c 6e 5a cb 5a 5e 1e 5c | 66 c9 0e 0d 5c 66 5a cb |\nZ.Z^.\|f...\fZ.|
|00001e40| 5a 5e 1e 0e cf 0e 07 0e | 5c 66 09 c6 c9 0e 10 26 |Z^......|\f.....&|
|00001e50| 06 88 cf 0e 08 0e 0e 09 | c9 c6 0e 10 26 06 88 cf |........|....&...|
|00001e60| 0e 07 0e 08 5d 0e 5c 66 | 0e 0e 5e 09 c6 89 0e 10 |....].\f|..^.....|
|00001e70| 26 06 88 cf c6 5c 66 5a | c5 5d 5c 6e 0e 5c 6e 5a |&....\fZ|.]\n.\nZ|
|00001e80| 5d c9 5c 6e d1 5a 5e 0e | 0d 5c 66 5a cb 5a 5e 09 |].\n.Z^.|.\fZ.Z^.|
|00001e90| d2 c6 0e 10 26 06 2e 06 | 87 22 20 5b 67 6f 6d 6f |....&...|." [gomo|
|00001ea0| 6b 75 2d 69 6e 64 65 78 | 2d 74 6f 2d 78 20 73 71 |ku-index|-to-x sq|
|00001eb0| 75 61 72 65 20 78 20 67 | 6f 6d 6f 6b 75 2d 69 6e |uare x g|omoku-in|
|00001ec0| 64 65 78 2d 74 6f 2d 79 | 20 79 20 2d 34 20 31 20 |dex-to-y| y -4 1 |
|00001ed0| 69 6d 69 6e 20 6a 6d 69 | 6e 20 30 20 67 6f 6d 6f |imin jmi|n 0 gomo|
|00001ee0| 6b 75 2d 62 6f 61 72 64 | 2d 77 69 64 74 68 20 34 |ku-board|-width 4|
|00001ef0| 20 69 6d 61 78 20 67 6f | 6d 6f 6b 75 2d 62 6f 61 | imax go|moku-boa|
|00001f00| 72 64 2d 68 65 69 67 68 | 74 20 6a 6d 61 78 20 67 |rd-heigh|t jmax g|
|00001f10| 6f 6d 6f 6b 75 2d 75 70 | 64 61 74 65 2d 73 63 6f |omoku-up|date-sco|
|00001f20| 72 65 2d 69 6e 2d 64 69 | 72 65 63 74 69 6f 6e 20 |re-in-di|rection |
|00001f30| 64 76 61 6c 20 35 20 2d | 31 5d 20 37 20 28 23 24 |dval 5 -|1] 7 (#$|
|00001f40| 20 2e 20 37 35 38 36 29 | 5d 29 0a 23 40 31 38 37 | . 7586)|]).#@187|
|00001f50| 20 55 70 64 61 74 65 20 | 73 63 6f 72 65 73 20 66 | Update |scores f|
|00001f60| 6f 72 20 61 6c 6c 20 73 | 71 75 61 72 65 73 20 69 |or all s|quares i|
|00001f70| 6e 20 74 68 65 20 71 74 | 75 70 6c 65 73 20 73 74 |n the qt|uples st|
|00001f80| 61 72 74 69 6e 67 20 62 | 65 74 77 65 65 6e 20 74 |arting b|etween t|
|00001f90| 68 65 20 4c 45 46 54 74 | 68 0a 73 71 75 61 72 65 |he LEFTt|h.square|
|00001fa0| 20 61 6e 64 20 74 68 65 | 20 52 49 47 48 54 74 68 | and the| RIGHTth|
|00001fb0| 20 61 66 74 65 72 20 53 | 51 55 41 52 45 2c 20 61 | after S|QUARE, a|
|00001fc0| 6c 6f 6e 67 20 74 68 65 | 20 44 58 2c 20 44 59 20 |long the| DX, DY |
|00001fd0| 64 69 72 65 63 74 69 6f | 6e 2c 20 63 6f 6e 73 69 |directio|n, consi|
|00001fe0| 64 65 72 69 6e 67 0a 74 | 68 61 74 20 44 56 41 4c |dering.t|hat DVAL|
|00001ff0| 20 68 61 73 20 62 65 65 | 6e 20 61 64 64 65 64 20 | has bee|n added |
|00002000| 6f 6e 20 53 51 55 41 52 | 45 2e 1f 0a 28 64 65 66 |on SQUAR|E...(def|
|00002010| 61 6c 69 61 73 20 27 67 | 6f 6d 6f 6b 75 2d 75 70 |alias 'g|omoku-up|
|00002020| 64 61 74 65 2d 73 63 6f | 72 65 2d 69 6e 2d 64 69 |date-sco|re-in-di|
|00002030| 72 65 63 74 69 6f 6e 20 | 23 5b 28 6c 65 66 74 20 |rection |#[(left |
|00002040| 72 69 67 68 74 20 73 71 | 75 61 72 65 20 64 78 20 |right sq|uare dx |
|00002050| 64 79 20 64 76 61 6c 29 | 20 22 08 09 56 86 be 00 |dy dval)| "..V...|
|00002060| c2 89 89 89 89 89 1b 1c | 1d 1e 06 1e 07 1e 08 c9 |........|........|
|00002070| 0e 5c 6e 0e 0b 5c 22 16 | 08 0e 5c 66 08 0e 08 5f |.\n..\".|..\f..._|
|00002080| 5c 5c 16 07 0e 5c 66 09 | 0e 08 5f 5c 5c 16 06 0e |\\...\f.|.._\\...|
|00002090| 07 0e 08 cd 5f 5c 5c 15 | 0e 07 16 5c 66 ce 14 0e |...._\\.|...\f...|
|000020a0| 5c 66 0d 58 83 57 00 5c | 66 0e 0f 0e 5c 66 48 5c |\f.X.W.\|f...\fH\|
|000020b0| 5c 14 0e 5c 66 0e 08 5c | 5c 89 16 5c 66 82 3f 00 |\..\f..\|\..\f.?.|
|000020c0| 0e 07 0e 06 58 85 bc 00 | 0e 10 5c 66 48 0e 10 5c |....X...|..\fH..\|
|000020d0| 66 0e 11 5a 48 5a 89 13 | ce 55 84 9e 00 0e 07 89 |f..ZHZ..|.U......|
|000020e0| 16 5c 66 0d 58 83 9e 00 | 0e 0f 0e 5c 66 48 ce 55 |.\f.X...|...\fH.U|
|000020f0| 83 93 00 0e 12 0e 5c 66 | 0e 12 0e 5c 66 48 0b 5c |......\f|...\fH.\|
|00002100| 5c 49 88 0e 5c 66 0e 08 | 5c 5c 89 16 5c 66 82 77 |\I..\f..|\\..\f.w|
|00002110| 00 0d 0e 08 5c 5c 15 5c | 66 0e 0f 0e 07 48 5b 5c |....\\.\|f....H[\|
|00002120| 5c 0e 0f 0d 48 5c 5c 14 | 0e 07 0e 08 5c 5c 89 16 |\...H\\.|....\\..|
|00002130| 07 82 59 00 2e 06 87 22 | 20 5b 6c 65 66 74 20 72 |..Y...."| [left r|
|00002140| 69 67 68 74 20 6e 69 6c | 20 64 65 6c 74 61 20 63 |ight nil| delta c|
|00002150| 6f 75 6e 74 20 73 71 75 | 61 72 65 32 20 73 71 75 |ount squ|are2 squ|
|00002160| 61 72 65 31 20 73 71 75 | 61 72 65 30 20 64 65 70 |are1 squ|are0 dep|
|00002170| 6c 20 67 6f 6d 6f 6b 75 | 2d 78 79 2d 74 6f 2d 69 |l gomoku|-xy-to-i|
|00002180| 6e 64 65 78 20 64 78 20 | 64 79 20 73 71 75 61 72 |ndex dx |dy squar|
|00002190| 65 20 34 20 30 20 67 6f | 6d 6f 6b 75 2d 62 6f 61 |e 4 0 go|moku-boa|
|000021a0| 72 64 20 67 6f 6d 6f 6b | 75 2d 73 63 6f 72 65 2d |rd gomok|u-score-|
|000021b0| 74 72 61 6e 73 2d 74 61 | 62 6c 65 20 64 76 61 6c |trans-ta|ble dval|
|000021c0| 20 67 6f 6d 6f 6b 75 2d | 73 63 6f 72 65 2d 74 61 | gomoku-|score-ta|
|000021d0| 62 6c 65 5d 20 37 20 28 | 23 24 20 2e 20 38 30 31 |ble] 7 (|#$ . 801|
|000021e0| 37 29 5d 29 0a 23 40 33 | 35 20 4e 6f 6e 2d 6e 69 |7)]).#@3|5 Non-ni|
|000021f0| 6c 20 69 66 20 61 20 67 | 61 6d 65 20 69 73 20 69 |l if a g|ame is i|
|00002200| 6e 20 70 72 6f 67 72 65 | 73 73 2e 1f 0a 28 64 65 |n progre|ss...(de|
|00002210| 66 76 61 72 20 67 6f 6d | 6f 6b 75 2d 67 61 6d 65 |fvar gom|oku-game|
|00002220| 2d 69 6e 2d 70 72 6f 67 | 72 65 73 73 20 6e 69 6c |-in-prog|ress nil|
|00002230| 20 28 23 24 20 2e 20 38 | 36 38 32 29 29 0a 23 40 | (#$ . 8|682)).#@|
|00002240| 36 36 20 41 20 72 65 63 | 6f 72 64 20 6f 66 20 61 |66 A rec|ord of a|
|00002250| 6c 6c 20 6d 6f 76 65 73 | 20 74 68 61 74 20 68 61 |ll moves| that ha|
|00002260| 76 65 20 62 65 65 6e 20 | 70 6c 61 79 65 64 20 64 |ve been |played d|
|00002270| 75 72 69 6e 67 20 63 75 | 72 72 65 6e 74 20 67 61 |uring cu|rrent ga|
|00002280| 6d 65 2e 1f 0a 28 64 65 | 66 76 61 72 20 67 6f 6d |me...(de|fvar gom|
|00002290| 6f 6b 75 2d 67 61 6d 65 | 2d 68 69 73 74 6f 72 79 |oku-game|-history|
|000022a0| 20 6e 69 6c 20 28 23 24 | 20 2e 20 38 37 37 31 29 | nil (#$| . 8771)|
|000022b0| 29 0a 23 40 34 39 20 4e | 75 6d 62 65 72 20 6f 66 |).#@49 N|umber of|
|000022c0| 20 6d 6f 76 65 73 20 61 | 6c 72 65 61 64 79 20 70 | moves a|lready p|
|000022d0| 6c 61 79 65 64 20 69 6e | 20 63 75 72 72 65 6e 74 |layed in| current|
|000022e0| 20 67 61 6d 65 2e 1f 0a | 28 64 65 66 76 61 72 20 | game...|(defvar |
|000022f0| 67 6f 6d 6f 6b 75 2d 6e | 75 6d 62 65 72 2d 6f 66 |gomoku-n|umber-of|
|00002300| 2d 6d 6f 76 65 73 20 6e | 69 6c 20 28 23 24 20 2e |-moves n|il (#$ .|
|00002310| 20 38 38 38 37 29 29 0a | 23 40 35 38 20 4e 75 6d | 8887)).|#@58 Num|
|00002320| 62 65 72 20 6f 66 20 6d | 6f 76 65 73 20 61 6c 72 |ber of m|oves alr|
|00002330| 65 61 64 79 20 70 6c 61 | 79 65 64 20 62 79 20 68 |eady pla|yed by h|
|00002340| 75 6d 61 6e 20 69 6e 20 | 63 75 72 72 65 6e 74 20 |uman in |current |
|00002350| 67 61 6d 65 2e 1f 0a 28 | 64 65 66 76 61 72 20 67 |game...(|defvar g|
|00002360| 6f 6d 6f 6b 75 2d 6e 75 | 6d 62 65 72 2d 6f 66 2d |omoku-nu|mber-of-|
|00002370| 68 75 6d 61 6e 2d 6d 6f | 76 65 73 20 6e 69 6c 20 |human-mo|ves nil |
|00002380| 28 23 24 20 2e 20 38 39 | 38 39 29 29 0a 23 40 33 |(#$ . 89|89)).#@3|
|00002390| 32 20 4e 6f 6e 2d 6e 69 | 6c 20 69 66 20 45 6d 61 |2 Non-ni|l if Ema|
|000023a0| 63 73 20 70 6c 61 79 65 | 64 20 66 69 72 73 74 2e |cs playe|d first.|
|000023b0| 1f 0a 28 64 65 66 76 61 | 72 20 67 6f 6d 6f 6b 75 |..(defva|r gomoku|
|000023c0| 2d 65 6d 61 63 73 2d 70 | 6c 61 79 65 64 2d 66 69 |-emacs-p|layed-fi|
|000023d0| 72 73 74 20 6e 69 6c 20 | 28 23 24 20 2e 20 39 31 |rst nil |(#$ . 91|
|000023e0| 30 36 29 29 0a 23 40 35 | 32 20 4e 6f 6e 2d 6e 69 |06)).#@5|2 Non-ni|
|000023f0| 6c 20 69 66 20 48 75 6d | 61 6e 20 74 6f 6f 6b 20 |l if Hum|an took |
|00002400| 62 61 63 6b 20 61 20 6d | 6f 76 65 20 64 75 72 69 |back a m|ove duri|
|00002410| 6e 67 20 74 68 65 20 67 | 61 6d 65 2e 1f 0a 28 64 |ng the g|ame...(d|
|00002420| 65 66 76 61 72 20 67 6f | 6d 6f 6b 75 2d 68 75 6d |efvar go|moku-hum|
|00002430| 61 6e 2d 74 6f 6f 6b 2d | 62 61 63 6b 20 6e 69 6c |an-took-|back nil|
|00002440| 20 28 23 24 20 2e 20 39 | 31 39 34 29 29 0a 23 40 | (#$ . 9|194)).#@|
|00002450| 34 39 20 4e 6f 6e 2d 6e | 69 6c 20 69 66 20 48 75 |49 Non-n|il if Hu|
|00002460| 6d 61 6e 20 72 65 66 75 | 73 65 64 20 45 6d 61 63 |man refu|sed Emac|
|00002470| 73 20 6f 66 66 65 72 20 | 6f 66 20 61 20 64 72 61 |s offer |of a dra|
|00002480| 77 2e 1f 0a 28 64 65 66 | 76 61 72 20 67 6f 6d 6f |w...(def|var gomo|
|00002490| 6b 75 2d 68 75 6d 61 6e | 2d 72 65 66 75 73 65 64 |ku-human|-refused|
|000024a0| 2d 64 72 61 77 20 6e 69 | 6c 20 28 23 24 20 2e 20 |-draw ni|l (#$ . |
|000024b0| 39 32 39 39 29 29 0a 23 | 40 35 33 20 4e 6f 6e 2d |9299)).#|@53 Non-|
|000024c0| 6e 69 6c 20 69 66 20 45 | 6d 61 63 73 20 69 73 20 |nil if E|macs is |
|000024d0| 69 6e 20 74 68 65 20 6d | 69 64 64 6c 65 20 6f 66 |in the m|iddle of|
|000024e0| 20 61 20 63 6f 6d 70 75 | 74 61 74 69 6f 6e 2e 1f | a compu|tation..|
|000024f0| 0a 28 64 65 66 76 61 72 | 20 67 6f 6d 6f 6b 75 2d |.(defvar| gomoku-|
|00002500| 65 6d 61 63 73 2d 69 73 | 2d 63 6f 6d 70 75 74 69 |emacs-is|-computi|
|00002510| 6e 67 20 6e 69 6c 20 28 | 23 24 20 2e 20 39 34 30 |ng nil (|#$ . 940|
|00002520| 34 29 29 0a 23 40 34 33 | 20 49 6e 69 74 69 61 6c |4)).#@43| Initial|
|00002530| 69 7a 65 20 61 20 6e 65 | 77 20 67 61 6d 65 20 6f |ize a ne|w game o|
|00002540| 6e 20 61 6e 20 4e 20 62 | 79 20 4d 20 62 6f 61 72 |n an N b|y M boar|
|00002550| 64 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 67 |d...(def|alias 'g|
|00002560| 6f 6d 6f 6b 75 2d 73 74 | 61 72 74 2d 67 61 6d 65 |omoku-st|art-game|
|00002570| 20 23 5b 28 6e 20 6d 29 | 20 22 c0 11 c0 12 0b 14 | #[(n m)| "......|
|00002580| 0d 16 06 0d c7 5c 5c 0b | 54 5f 54 16 08 0b 0d 5f |.....\\.|T_T...._|
|00002590| c9 5f ca a5 16 0b cc 16 | 0d cc 16 0e cf 16 10 cf |._......|........|
|000025a0| 16 11 cc 16 12 cc 16 13 | cc 16 14 d5 0b 0d 5c 22 |........|......\"|
|000025b0| 88 d6 20 88 d7 20 88 cc | 89 11 87 22 20 5b 74 20 |.. .. ..|..." [t |
|000025c0| 67 6f 6d 6f 6b 75 2d 65 | 6d 61 63 73 2d 69 73 2d |gomoku-e|macs-is-|
|000025d0| 63 6f 6d 70 75 74 69 6e | 67 20 67 6f 6d 6f 6b 75 |computin|g gomoku|
|000025e0| 2d 67 61 6d 65 2d 69 6e | 2d 70 72 6f 67 72 65 73 |-game-in|-progres|
|000025f0| 73 20 6e 20 67 6f 6d 6f | 6b 75 2d 62 6f 61 72 64 |s n gomo|ku-board|
|00002600| 2d 77 69 64 74 68 20 6d | 20 67 6f 6d 6f 6b 75 2d |-width m| gomoku-|
|00002610| 62 6f 61 72 64 2d 68 65 | 69 67 68 74 20 32 20 67 |board-he|ight 2 g|
|00002620| 6f 6d 6f 6b 75 2d 76 65 | 63 74 6f 72 2d 6c 65 6e |omoku-ve|ctor-len|
|00002630| 67 74 68 20 37 20 31 30 | 20 67 6f 6d 6f 6b 75 2d |gth 7 10| gomoku-|
|00002640| 64 72 61 77 2d 6c 69 6d | 69 74 20 6e 69 6c 20 67 |draw-lim|it nil g|
|00002650| 6f 6d 6f 6b 75 2d 65 6d | 61 63 73 2d 77 6f 6e 20 |omoku-em|acs-won |
|00002660| 67 6f 6d 6f 6b 75 2d 67 | 61 6d 65 2d 68 69 73 74 |gomoku-g|ame-hist|
|00002670| 6f 72 79 20 30 20 67 6f | 6d 6f 6b 75 2d 6e 75 6d |ory 0 go|moku-num|
|00002680| 62 65 72 2d 6f 66 2d 6d | 6f 76 65 73 20 67 6f 6d |ber-of-m|oves gom|
|00002690| 6f 6b 75 2d 6e 75 6d 62 | 65 72 2d 6f 66 2d 68 75 |oku-numb|er-of-hu|
|000026a0| 6d 61 6e 2d 6d 6f 76 65 | 73 20 67 6f 6d 6f 6b 75 |man-move|s gomoku|
|000026b0| 2d 65 6d 61 63 73 2d 70 | 6c 61 79 65 64 2d 66 69 |-emacs-p|layed-fi|
|000026c0| 72 73 74 20 67 6f 6d 6f | 6b 75 2d 68 75 6d 61 6e |rst gomo|ku-human|
|000026d0| 2d 74 6f 6f 6b 2d 62 61 | 63 6b 20 67 6f 6d 6f 6b |-took-ba|ck gomok|
|000026e0| 75 2d 68 75 6d 61 6e 2d | 72 65 66 75 73 65 64 2d |u-human-|refused-|
|000026f0| 64 72 61 77 20 67 6f 6d | 6f 6b 75 2d 69 6e 69 74 |draw gom|oku-init|
|00002700| 2d 64 69 73 70 6c 61 79 | 20 67 6f 6d 6f 6b 75 2d |-display| gomoku-|
|00002710| 69 6e 69 74 2d 73 63 6f | 72 65 2d 74 61 62 6c 65 |init-sco|re-table|
|00002720| 20 67 6f 6d 6f 6b 75 2d | 69 6e 69 74 2d 62 6f 61 | gomoku-|init-boa|
|00002730| 72 64 5d 20 33 20 28 23 | 24 20 2e 20 39 35 31 33 |rd] 3 (#|$ . 9513|
|00002740| 29 5d 29 0a 23 40 34 37 | 20 47 6f 20 74 6f 20 53 |)]).#@47| Go to S|
|00002750| 51 55 41 52 45 2c 20 70 | 6c 61 79 20 56 41 4c 20 |QUARE, p|lay VAL |
|00002760| 61 6e 64 20 75 70 64 61 | 74 65 20 65 76 65 72 79 |and upda|te every|
|00002770| 74 68 69 6e 67 2e 1f 0a | 28 64 65 66 61 6c 69 61 |thing...|(defalia|
|00002780| 73 20 27 67 6f 6d 6f 6b | 75 2d 70 6c 61 79 2d 6d |s 'gomok|u-play-m|
|00002790| 6f 76 65 20 23 5b 28 73 | 71 75 61 72 65 20 76 61 |ove #[(s|quare va|
|000027a0| 6c 20 26 6f 70 74 69 6f | 6e 61 6c 20 64 6f 6e 74 |l &optio|nal dont|
|000027b0| 2d 75 70 64 61 74 65 2d | 73 63 6f 72 65 29 20 22 |-update-|score) "|
|000027c0| c0 11 5c 6e c3 55 83 0e | 00 5c 66 54 14 82 17 00 |..\n.U..|.\fT....|
|000027d0| 0d c6 55 83 17 00 c0 16 | 07 0e 08 0e 09 0e 08 48 |..U.....|.......H|
|000027e0| 42 0e 5c 6e 42 16 5c 6e | 0d 54 15 cb 0e 08 5c 6e |B.\nB.\n|.T....\n|
|000027f0| 5c 22 88 0e 5c 66 0e 08 | 5c 6e 49 88 0e 0d 84 46 |\"..\f..|\nI....F|
|00002800| 00 ce 0e 08 5c 6e 5c 22 | 88 0e 09 0e 08 cf 49 88 |....\n\"|......I.|
|00002810| d0 89 11 87 22 20 5b 74 | 20 67 6f 6d 6f 6b 75 2d |...." [t| gomoku-|
|00002820| 65 6d 61 63 73 2d 69 73 | 2d 63 6f 6d 70 75 74 69 |emacs-is|-computi|
|00002830| 6e 67 20 76 61 6c 20 31 | 20 67 6f 6d 6f 6b 75 2d |ng val 1| gomoku-|
|00002840| 6e 75 6d 62 65 72 2d 6f | 66 2d 68 75 6d 61 6e 2d |number-o|f-human-|
|00002850| 6d 6f 76 65 73 20 67 6f | 6d 6f 6b 75 2d 6e 75 6d |moves go|moku-num|
|00002860| 62 65 72 2d 6f 66 2d 6d | 6f 76 65 73 20 30 20 67 |ber-of-m|oves 0 g|
|00002870| 6f 6d 6f 6b 75 2d 65 6d | 61 63 73 2d 70 6c 61 79 |omoku-em|acs-play|
|00002880| 65 64 2d 66 69 72 73 74 | 20 73 71 75 61 72 65 20 |ed-first| square |
|00002890| 67 6f 6d 6f 6b 75 2d 73 | 63 6f 72 65 2d 74 61 62 |gomoku-s|core-tab|
|000028a0| 6c 65 20 67 6f 6d 6f 6b | 75 2d 67 61 6d 65 2d 68 |le gomok|u-game-h|
|000028b0| 69 73 74 6f 72 79 20 67 | 6f 6d 6f 6b 75 2d 70 6c |istory g|omoku-pl|
|000028c0| 6f 74 2d 73 71 75 61 72 | 65 20 67 6f 6d 6f 6b 75 |ot-squar|e gomoku|
|000028d0| 2d 62 6f 61 72 64 20 64 | 6f 6e 74 2d 75 70 64 61 |-board d|ont-upda|
|000028e0| 74 65 2d 73 63 6f 72 65 | 20 67 6f 6d 6f 6b 75 2d |te-score| gomoku-|
|000028f0| 75 70 64 61 74 65 2d 73 | 63 6f 72 65 2d 74 61 62 |update-s|core-tab|
|00002900| 6c 65 20 2d 31 20 6e 69 | 6c 5d 20 33 20 28 23 24 |le -1 ni|l] 3 (#$|
|00002910| 20 2e 20 31 30 30 35 37 | 29 5d 29 0a 23 40 34 34 | . 10057|)]).#@44|
|00002920| 20 54 61 6b 65 20 62 61 | 63 6b 20 6c 61 73 74 20 | Take ba|ck last |
|00002930| 6d 6f 76 65 20 61 6e 64 | 20 75 70 64 61 74 65 20 |move and| update |
|00002940| 65 76 65 72 79 74 68 69 | 6e 67 2e 1f 0a 28 64 65 |everythi|ng...(de|
|00002950| 66 61 6c 69 61 73 20 27 | 67 6f 6d 6f 6b 75 2d 74 |falias '|gomoku-t|
|00002960| 61 6b 65 2d 62 61 63 6b | 20 23 5b 6e 69 6c 20 22 |ake-back| #[nil "|
|00002970| c0 11 5c 6e 40 89 1b 40 | 1c 0d 5c 66 48 89 1e 06 |..\n@..@|..\fH...|
|00002980| c7 55 83 18 00 0e 08 53 | 16 08 5c 6e 41 12 0e 09 |.U.....S|..\nA...|
|00002990| 53 16 09 ca 5c 66 cb 5c | 22 88 0d 5c 66 cb 49 88 |S...\f.\|"..\f.I.|
|000029a0| cc 5c 66 0e 06 5b 5c 22 | 88 0e 0d 5c 66 0b 41 49 |.\f..[\"|...\f.AI|
|000029b0| 88 2b ce 89 11 87 22 20 | 5b 74 20 67 6f 6d 6f 6b |.+...." |[t gomok|
|000029c0| 75 2d 65 6d 61 63 73 2d | 69 73 2d 63 6f 6d 70 75 |u-emacs-|is-compu|
|000029d0| 74 69 6e 67 20 67 6f 6d | 6f 6b 75 2d 67 61 6d 65 |ting gom|oku-game|
|000029e0| 2d 68 69 73 74 6f 72 79 | 20 6c 61 73 74 2d 6d 6f |-history| last-mo|
|000029f0| 76 65 20 73 71 75 61 72 | 65 20 67 6f 6d 6f 6b 75 |ve squar|e gomoku|
|00002a00| 2d 62 6f 61 72 64 20 6f | 6c 64 76 61 6c 20 31 20 |-board o|ldval 1 |
|00002a10| 67 6f 6d 6f 6b 75 2d 6e | 75 6d 62 65 72 2d 6f 66 |gomoku-n|umber-of|
|00002a20| 2d 68 75 6d 61 6e 2d 6d | 6f 76 65 73 20 67 6f 6d |-human-m|oves gom|
|00002a30| 6f 6b 75 2d 6e 75 6d 62 | 65 72 2d 6f 66 2d 6d 6f |oku-numb|er-of-mo|
|00002a40| 76 65 73 20 67 6f 6d 6f | 6b 75 2d 70 6c 6f 74 2d |ves gomo|ku-plot-|
|00002a50| 73 71 75 61 72 65 20 30 | 20 67 6f 6d 6f 6b 75 2d |square 0| gomoku-|
|00002a60| 75 70 64 61 74 65 2d 73 | 63 6f 72 65 2d 74 61 62 |update-s|core-tab|
|00002a70| 6c 65 20 67 6f 6d 6f 6b | 75 2d 73 63 6f 72 65 2d |le gomok|u-score-|
|00002a80| 74 61 62 6c 65 20 6e 69 | 6c 5d 20 34 20 28 23 24 |table ni|l] 4 (#$|
|00002a90| 20 2e 20 31 30 35 32 39 | 29 5d 29 0a 23 40 34 34 | . 10529|)]).#@44|
|00002aa0| 20 4e 75 6d 62 65 72 20 | 6f 66 20 67 61 6d 65 73 | Number |of games|
|00002ab0| 20 45 6d 61 63 73 20 77 | 6f 6e 20 69 6e 20 74 68 | Emacs w|on in th|
|00002ac0| 69 73 20 73 65 73 73 69 | 6f 6e 2e 1f 0a 28 64 65 |is sessi|on...(de|
|00002ad0| 66 76 61 72 20 67 6f 6d | 6f 6b 75 2d 6e 75 6d 62 |fvar gom|oku-numb|
|00002ae0| 65 72 2d 6f 66 2d 65 6d | 61 63 73 2d 77 69 6e 73 |er-of-em|acs-wins|
|00002af0| 20 30 20 28 23 24 20 2e | 20 31 30 39 31 33 29 29 | 0 (#$ .| 10913))|
|00002b00| 0a 23 40 34 32 20 4e 75 | 6d 62 65 72 20 6f 66 20 |.#@42 Nu|mber of |
|00002b10| 67 61 6d 65 73 20 79 6f | 75 20 77 6f 6e 20 69 6e |games yo|u won in|
|00002b20| 20 74 68 69 73 20 73 65 | 73 73 69 6f 6e 2e 1f 0a | this se|ssion...|
|00002b30| 28 64 65 66 76 61 72 20 | 67 6f 6d 6f 6b 75 2d 6e |(defvar |gomoku-n|
|00002b40| 75 6d 62 65 72 2d 6f 66 | 2d 68 75 6d 61 6e 2d 77 |umber-of|-human-w|
|00002b50| 69 6e 73 20 30 20 28 23 | 24 20 2e 20 31 31 30 31 |ins 0 (#|$ . 1101|
|00002b60| 34 29 29 0a 23 40 34 38 | 20 4e 75 6d 62 65 72 20 |4)).#@48| Number |
|00002b70| 6f 66 20 67 61 6d 65 73 | 20 61 6c 72 65 61 64 79 |of games| already|
|00002b80| 20 64 72 61 77 6e 20 69 | 6e 20 74 68 69 73 20 73 | drawn i|n this s|
|00002b90| 65 73 73 69 6f 6e 2e 1f | 0a 28 64 65 66 76 61 72 |ession..|.(defvar|
|00002ba0| 20 67 6f 6d 6f 6b 75 2d | 6e 75 6d 62 65 72 2d 6f | gomoku-|number-o|
|00002bb0| 66 2d 64 72 61 77 73 20 | 30 20 28 23 24 20 2e 20 |f-draws |0 (#$ . |
|00002bc0| 31 31 31 31 33 29 29 0a | 23 40 34 31 20 54 65 72 |11113)).|#@41 Ter|
|00002bd0| 6d 69 6e 61 74 65 20 74 | 68 65 20 63 75 72 72 65 |minate t|he curre|
|00002be0| 6e 74 20 67 61 6d 65 20 | 77 69 74 68 20 52 45 53 |nt game |with RES|
|00002bf0| 55 4c 54 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ULT...(d|efalias |
|00002c00| 27 67 6f 6d 6f 6b 75 2d | 74 65 72 6d 69 6e 61 74 |'gomoku-|terminat|
|00002c10| 65 2d 67 61 6d 65 20 23 | 5b 28 72 65 73 75 6c 74 |e-game #|[(result|
|00002c20| 29 20 22 c0 09 c2 3d 83 | 4b 00 0b 54 13 5c 66 c5 |) "...=.|K..T.\f.|
|00002c30| 57 83 14 00 c6 82 c8 00 | 0e 07 83 1d 00 c8 82 c8 |W.......|........|
|00002c40| 00 0e 09 83 26 00 ca 82 | c8 00 0e 0b 84 2f 00 cc |....&...|...../..|
|00002c50| 82 c8 00 0e 0d ce 55 83 | 47 00 0e 0f ce 55 83 47 |......U.|G....U.G|
|00002c60| 00 0b d0 56 83 47 00 d1 | 82 c8 00 d2 82 c8 00 09 |...V.G..|........|
|00002c70| d3 3d 83 6e 00 0e 0d 54 | 16 0d d4 0e 09 83 60 00 |.=.n...T|......`.|
|00002c80| d5 82 6a 00 0e 0b 83 69 | 00 d6 82 6a 00 d7 50 82 |..j....i|...j..P.|
|00002c90| c8 00 09 d8 3d 83 7b 00 | 0b 54 13 d9 82 c8 00 09 |....=.{.|.T......|
|00002ca0| da 3d 83 9e 00 0e 0f 54 | 16 0f db 0e 09 83 90 00 |.=.....T|........|
|00002cb0| dc 82 9a 00 0e 0b 83 99 | 00 dd 82 9a 00 de 50 82 |........|......P.|
|00002cc0| c8 00 09 df 3d 83 c1 00 | 0e 0f 54 16 0f e0 0e 09 |....=...|..T.....|
|00002cd0| 83 b3 00 dc 82 bd 00 0e | 0b 83 bc 00 e1 82 bd 00 |........|........|
|00002ce0| de 50 82 c8 00 09 e2 3d | 85 c8 00 e3 21 88 e4 20 |.P.....=|....!.. |
|00002cf0| 88 e5 89 16 26 87 22 20 | 5b 6d 65 73 73 61 67 65 |....&." |[message|
|00002d00| 20 72 65 73 75 6c 74 20 | 65 6d 61 63 73 2d 77 6f | result |emacs-wo|
|00002d10| 6e 20 67 6f 6d 6f 6b 75 | 2d 6e 75 6d 62 65 72 2d |n gomoku|-number-|
|00002d20| 6f 66 2d 65 6d 61 63 73 | 2d 77 69 6e 73 20 67 6f |of-emacs|-wins go|
|00002d30| 6d 6f 6b 75 2d 6e 75 6d | 62 65 72 2d 6f 66 2d 6d |moku-num|ber-of-m|
|00002d40| 6f 76 65 73 20 32 30 20 | 22 54 68 69 73 20 77 61 |oves 20 |"This wa|
|00002d50| 73 20 61 20 52 45 41 4c | 4c 59 20 51 55 49 43 4b |s a REAL|LY QUICK|
|00002d60| 20 77 69 6e 2e 22 20 67 | 6f 6d 6f 6b 75 2d 68 75 | win." g|omoku-hu|
|00002d70| 6d 61 6e 2d 72 65 66 75 | 73 65 64 2d 64 72 61 77 |man-refu|sed-draw|
|00002d80| 20 22 49 20 77 6f 6e 2e | 2e 2e 20 54 6f 6f 20 62 | "I won.|.. Too b|
|00002d90| 61 64 20 79 6f 75 20 72 | 65 66 75 73 65 64 20 6d |ad you r|efused m|
|00002da0| 79 20 6f 66 66 65 72 20 | 6f 66 20 61 20 64 72 61 |y offer |of a dra|
|00002db0| 77 20 21 22 20 67 6f 6d | 6f 6b 75 2d 68 75 6d 61 |w !" gom|oku-huma|
|00002dc0| 6e 2d 74 6f 6f 6b 2d 62 | 61 63 6b 20 22 49 20 77 |n-took-b|ack "I w|
|00002dd0| 6f 6e 2e 2e 2e 20 54 61 | 6b 69 6e 67 20 6d 6f 76 |on... Ta|king mov|
|00002de0| 65 73 20 62 61 63 6b 20 | 77 69 6c 6c 20 6e 6f 74 |es back |will not|
|00002df0| 20 68 65 6c 70 20 79 6f | 75 20 21 22 20 67 6f 6d | help yo|u !" gom|
|00002e00| 6f 6b 75 2d 65 6d 61 63 | 73 2d 70 6c 61 79 65 64 |oku-emac|s-played|
|00002e10| 2d 66 69 72 73 74 20 22 | 49 20 77 6f 6e 2e 2e 2e |-first "|I won...|
|00002e20| 20 50 6c 61 79 69 6e 67 | 20 66 69 72 73 74 20 64 | Playing| first d|
|00002e30| 69 64 20 6e 6f 74 20 68 | 65 6c 70 20 79 6f 75 20 |id not h|elp you |
|00002e40| 6d 75 63 68 20 21 22 20 | 67 6f 6d 6f 6b 75 2d 6e |much !" |gomoku-n|
|00002e50| 75 6d 62 65 72 2d 6f 66 | 2d 68 75 6d 61 6e 2d 77 |umber-of|-human-w|
|00002e60| 69 6e 73 20 30 20 67 6f | 6d 6f 6b 75 2d 6e 75 6d |ins 0 go|moku-num|
|00002e70| 62 65 72 2d 6f 66 2d 64 | 72 61 77 73 20 31 20 22 |ber-of-d|raws 1 "|
|00002e80| 49 27 6d 20 62 65 63 6f | 6d 69 6e 67 20 74 69 72 |I'm beco|ming tir|
|00002e90| 65 64 20 6f 66 20 77 69 | 6e 6e 69 6e 67 2e 2e 2e |ed of wi|nning...|
|00002ea0| 22 20 22 49 20 77 6f 6e | 2e 22 20 68 75 6d 61 6e |" "I won|." human|
|00002eb0| 2d 77 6f 6e 20 22 4f 4b | 2c 20 79 6f 75 20 77 6f |-won "OK|, you wo|
|00002ec0| 6e 20 74 68 69 73 20 6f | 6e 65 2e 22 20 22 20 20 |n this o|ne." " |
|00002ed0| 49 2c 20 66 6f 72 20 6f | 6e 65 2c 20 6e 65 76 65 |I, for o|ne, neve|
|00002ee0| 72 20 74 61 6b 65 20 6d | 79 20 6d 6f 76 65 73 20 |r take m|y moves |
|00002ef0| 62 61 63 6b 2e 2e 2e 22 | 20 22 2e 2e 20 73 6f 20 |back..."| ".. so |
|00002f00| 77 68 61 74 20 3f 22 20 | 22 20 20 4e 6f 77 2c 20 |what ?" |" Now, |
|00002f10| 6c 65 74 20 6d 65 20 70 | 6c 61 79 20 66 69 72 73 |let me p|lay firs|
|00002f20| 74 20 6a 75 73 74 20 6f | 6e 63 65 2e 22 20 68 75 |t just o|nce." hu|
|00002f30| 6d 61 6e 2d 72 65 73 69 | 67 6e 65 64 20 22 53 6f |man-resi|gned "So|
|00002f40| 20 79 6f 75 20 72 65 73 | 69 67 6e 2e 20 20 54 68 | you res|ign. Th|
|00002f50| 61 74 27 73 20 6a 75 73 | 74 20 6f 6e 65 20 6d 6f |at's jus|t one mo|
|00002f60| 72 65 20 77 69 6e 20 66 | 6f 72 20 6d 65 2e 22 20 |re win f|or me." |
|00002f70| 6e 6f 62 6f 64 79 2d 77 | 6f 6e 20 22 54 68 69 73 |nobody-w|on "This|
|00002f80| 20 69 73 20 61 20 64 72 | 61 77 2e 20 20 22 20 22 | is a dr|aw. " "|
|00002f90| 49 2c 20 66 6f 72 20 6f | 6e 65 2c 20 6e 65 76 65 |I, for o|ne, neve|
|00002fa0| 72 20 74 61 6b 65 20 6d | 79 20 6d 6f 76 65 73 20 |r take m|y moves |
|00002fb0| 62 61 63 6b 2e 2e 2e 22 | 20 22 4a 75 73 74 20 63 |back..."| "Just c|
|00002fc0| 68 61 6e 63 65 2c 20 49 | 20 67 75 65 73 73 2e 22 |hance, I| guess."|
|00002fd0| 20 22 4e 6f 77 2c 20 6c | 65 74 20 6d 65 20 70 6c | "Now, l|et me pl|
|00002fe0| 61 79 20 66 69 72 73 74 | 20 6a 75 73 74 20 6f 6e |ay first| just on|
|00002ff0| 63 65 2e 22 20 64 72 61 | 77 2d 61 67 72 65 65 64 |ce." dra|w-agreed|
|00003000| 20 22 44 72 61 77 20 61 | 67 72 65 65 64 2e 20 20 | "Draw a|greed. |
|00003010| 22 20 22 59 6f 75 20 77 | 65 72 65 20 6c 75 63 6b |" "You w|ere luck|
|00003020| 79 2e 22 20 63 72 61 73 | 68 2d 67 61 6d 65 20 22 |y." cras|h-game "|
|00003030| 53 6f 72 72 79 2c 20 49 | 20 68 61 76 65 20 62 65 |Sorry, I| have be|
|00003040| 65 6e 20 69 6e 74 65 72 | 72 75 70 74 65 64 20 61 |en inter|rupted a|
|00003050| 6e 64 20 63 61 6e 6e 6f | 74 20 72 65 73 75 6d 65 |nd canno|t resume|
|00003060| 20 74 68 61 74 20 67 61 | 6d 65 2e 2e 2e 22 20 67 | that ga|me..." g|
|00003070| 6f 6d 6f 6b 75 2d 64 69 | 73 70 6c 61 79 2d 73 74 |omoku-di|splay-st|
|00003080| 61 74 69 73 74 69 63 73 | 20 6e 69 6c 20 67 6f 6d |atistics| nil gom|
|00003090| 6f 6b 75 2d 67 61 6d 65 | 2d 69 6e 2d 70 72 6f 67 |oku-game|-in-prog|
|000030a0| 72 65 73 73 5d 20 33 20 | 28 23 24 20 2e 20 31 31 |ress] 3 |(#$ . 11|
|000030b0| 32 31 33 29 5d 29 0a 23 | 40 35 36 20 57 68 61 74 |213)]).#|@56 What|
|000030c0| 20 74 6f 20 64 6f 20 77 | 68 65 6e 20 45 6d 61 63 | to do w|hen Emac|
|000030d0| 73 20 64 65 74 65 63 74 | 73 20 69 74 20 68 61 73 |s detect|s it has|
|000030e0| 20 62 65 65 6e 20 69 6e | 74 65 72 72 75 70 74 65 | been in|terrupte|
|000030f0| 64 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 67 |d...(def|alias 'g|
|00003100| 6f 6d 6f 6b 75 2d 63 72 | 61 73 68 2d 67 61 6d 65 |omoku-cr|ash-game|
|00003110| 20 23 5b 6e 69 6c 20 22 | c0 11 c2 c3 21 88 c4 c5 | #[nil "|....!...|
|00003120| 21 88 c6 20 87 22 20 5b | 6e 69 6c 20 67 6f 6d 6f |!.. ." [|nil gomo|
|00003130| 6b 75 2d 65 6d 61 63 73 | 2d 69 73 2d 63 6f 6d 70 |ku-emacs|-is-comp|
|00003140| 75 74 69 6e 67 20 67 6f | 6d 6f 6b 75 2d 74 65 72 |uting go|moku-ter|
|00003150| 6d 69 6e 61 74 65 2d 67 | 61 6d 65 20 63 72 61 73 |minate-g|ame cras|
|00003160| 68 2d 67 61 6d 65 20 73 | 69 74 2d 66 6f 72 20 34 |h-game s|it-for 4|
|00003170| 20 67 6f 6d 6f 6b 75 2d | 70 72 6f 6d 70 74 2d 66 | gomoku-|prompt-f|
|00003180| 6f 72 2d 6f 74 68 65 72 | 2d 67 61 6d 65 5d 20 32 |or-other|-game] 2|
|00003190| 20 28 23 24 20 2e 20 31 | 32 34 37 36 29 5d 29 0a | (#$ . 1|2476)]).|
|000031a0| 23 40 35 36 34 20 53 74 | 61 72 74 20 61 20 47 6f |#@564 St|art a Go|
|000031b0| 6d 6f 6b 75 20 67 61 6d | 65 20 62 65 74 77 65 65 |moku gam|e betwee|
|000031c0| 6e 20 79 6f 75 20 61 6e | 64 20 45 6d 61 63 73 2e |n you an|d Emacs.|
|000031d0| 0a 49 66 20 61 20 67 61 | 6d 65 20 69 73 20 69 6e |.If a ga|me is in|
|000031e0| 20 70 72 6f 67 72 65 73 | 73 2c 20 74 68 69 73 20 | progres|s, this |
|000031f0| 63 6f 6d 6d 61 6e 64 20 | 61 6c 6c 6f 77 20 79 6f |command |allow yo|
|00003200| 75 20 74 6f 20 72 65 73 | 75 6d 65 20 69 74 2e 0a |u to res|ume it..|
|00003210| 49 66 20 6f 70 74 69 6f | 6e 61 6c 20 61 72 67 75 |If optio|nal argu|
|00003220| 6d 65 6e 74 73 20 4e 20 | 61 6e 64 20 4d 20 61 72 |ments N |and M ar|
|00003230| 65 20 67 69 76 65 6e 2c | 20 61 6e 20 4e 20 62 79 |e given,| an N by|
|00003240| 20 4d 20 62 6f 61 72 64 | 20 69 73 20 75 73 65 64 | M board| is used|
|00003250| 2e 0a 49 66 20 70 72 65 | 66 69 78 20 61 72 67 20 |..If pre|fix arg |
|00003260| 69 73 20 67 69 76 65 6e | 20 66 6f 72 20 4e 2c 20 |is given| for N, |
|00003270| 4d 20 69 73 20 70 72 6f | 6d 70 74 65 64 20 66 6f |M is pro|mpted fo|
|00003280| 72 2e 0a 0a 59 6f 75 20 | 61 6e 64 20 45 6d 61 63 |r...You |and Emac|
|00003290| 73 20 70 6c 61 79 20 69 | 6e 20 74 75 72 6e 20 62 |s play i|n turn b|
|000032a0| 79 20 6d 61 72 6b 69 6e | 67 20 61 20 66 72 65 65 |y markin|g a free|
|000032b0| 20 73 71 75 61 72 65 2e | 20 20 59 6f 75 20 6d 61 | square.| You ma|
|000032c0| 72 6b 20 69 74 20 77 69 | 74 68 20 58 0a 61 6e 64 |rk it wi|th X.and|
|000032d0| 20 45 6d 61 63 73 20 6d | 61 72 6b 73 20 69 74 20 | Emacs m|arks it |
|000032e0| 77 69 74 68 20 4f 2e 20 | 54 68 65 20 77 69 6e 6e |with O. |The winn|
|000032f0| 65 72 20 69 73 20 74 68 | 65 20 66 69 72 73 74 20 |er is th|e first |
|00003300| 74 6f 20 67 65 74 20 66 | 69 76 65 20 63 6f 6e 74 |to get f|ive cont|
|00003310| 69 67 75 6f 75 73 0a 6d | 61 72 6b 73 20 68 6f 72 |iguous.m|arks hor|
|00003320| 69 7a 6f 6e 74 61 6c 6c | 79 2c 20 76 65 72 74 69 |izontall|y, verti|
|00003330| 63 61 6c 6c 79 20 6f 72 | 20 69 6e 20 64 69 61 67 |cally or| in diag|
|00003340| 6f 6e 61 6c 2e 0a 0a 59 | 6f 75 20 70 6c 61 79 20 |onal...Y|ou play |
|00003350| 62 79 20 6d 6f 76 69 6e | 67 20 74 68 65 20 63 75 |by movin|g the cu|
|00003360| 72 73 6f 72 20 6f 76 65 | 72 20 74 68 65 20 73 71 |rsor ove|r the sq|
|00003370| 75 61 72 65 20 79 6f 75 | 20 63 68 6f 6f 73 65 20 |uare you| choose |
|00003380| 61 6e 64 20 68 69 74 74 | 69 6e 67 0a 5c 3c 67 6f |and hitt|ing.\<go|
|00003390| 6d 6f 6b 75 2d 6d 6f 64 | 65 2d 6d 61 70 3e 5c 5b |moku-mod|e-map>\[|
|000033a0| 67 6f 6d 6f 6b 75 2d 68 | 75 6d 61 6e 2d 70 6c 61 |gomoku-h|uman-pla|
|000033b0| 79 73 5d 2e 0a 55 73 65 | 20 5c 5b 64 65 73 63 72 |ys]..Use| \[descr|
|000033c0| 69 62 65 2d 6d 6f 64 65 | 5d 20 66 6f 72 20 6d 6f |ibe-mode|] for mo|
|000033d0| 72 65 20 69 6e 66 6f 2e | 1f 0a 28 64 65 66 61 6c |re info.|..(defal|
|000033e0| 69 61 73 20 27 67 6f 6d | 6f 6b 75 20 23 5b 28 26 |ias 'gom|oku #[(&|
|000033f0| 6f 70 74 69 6f 6e 61 6c | 20 6e 20 6d 29 20 22 c0 |optional| n m) ".|
|00003400| 20 88 09 83 5c 6e 00 c2 | 20 87 0b 83 14 00 5c 66 | ...\n..| .....\f|
|00003410| c5 58 83 8e 00 c6 20 c7 | 20 1e 08 1e 09 0e 5c 6e |.X.... .| .....\n|
|00003420| 84 25 00 0e 09 16 5c 6e | 0e 0b 84 2e 00 0e 08 16 |.%....\n|........|
|00003430| 0b 0e 5c 6e cc 57 83 3c | 00 cd ce 21 88 82 58 00 |..\n.W.<|...!..X.|
|00003440| 0e 0b cc 57 83 4a 00 cd | cf 21 88 82 58 00 0e 5c |...W.J..|.!..X..\|
|00003450| 6e 0e 09 56 83 58 00 cd | d0 0e 5c 6e 5c 22 88 0e |n..V.X..|..\n\"..|
|00003460| 0b 0e 08 56 83 76 00 0e | 0b 0e 11 3d 84 76 00 d2 |...V.v..|...=.v..|
|00003470| d3 d4 0e 0b 5c 22 21 84 | 76 00 0e 08 16 0b 2a d5 |....\"!.|v.....*.|
|00003480| d6 21 88 d7 0e 5c 6e 0e | 0b 5c 22 88 d2 d8 21 83 |.!...\n.|.\"...!.|
|00003490| 8b 00 d9 20 87 da 20 87 | d2 db 21 83 97 00 da 20 |... .. .|..!.... |
|000034a0| 87 dc 20 87 22 20 5b 67 | 6f 6d 6f 6b 75 2d 73 77 |.. ." [g|omoku-sw|
|000034b0| 69 74 63 68 2d 74 6f 2d | 77 69 6e 64 6f 77 20 67 |itch-to-|window g|
|000034c0| 6f 6d 6f 6b 75 2d 65 6d | 61 63 73 2d 69 73 2d 63 |omoku-em|acs-is-c|
|000034d0| 6f 6d 70 75 74 69 6e 67 | 20 67 6f 6d 6f 6b 75 2d |omputing| gomoku-|
|000034e0| 63 72 61 73 68 2d 67 61 | 6d 65 20 67 6f 6d 6f 6b |crash-ga|me gomok|
|000034f0| 75 2d 67 61 6d 65 2d 69 | 6e 2d 70 72 6f 67 72 65 |u-game-i|n-progre|
|00003500| 73 73 20 67 6f 6d 6f 6b | 75 2d 6e 75 6d 62 65 72 |ss gomok|u-number|
|00003510| 2d 6f 66 2d 6d 6f 76 65 | 73 20 32 20 67 6f 6d 6f |-of-move|s 2 gomo|
|00003520| 6b 75 2d 6d 61 78 2d 77 | 69 64 74 68 20 67 6f 6d |ku-max-w|idth gom|
|00003530| 6f 6b 75 2d 6d 61 78 2d | 68 65 69 67 68 74 20 6d |oku-max-|height m|
|00003540| 61 78 2d 68 65 69 67 68 | 74 20 6d 61 78 2d 77 69 |ax-heigh|t max-wi|
|00003550| 64 74 68 20 6e 20 6d 20 | 31 20 65 72 72 6f 72 20 |dth n m |1 error |
|00003560| 22 49 20 6e 65 65 64 20 | 61 74 20 6c 65 61 73 74 |"I need |at least|
|00003570| 20 31 20 63 6f 6c 75 6d | 6e 22 20 22 49 20 6e 65 | 1 colum|n" "I ne|
|00003580| 65 64 20 61 74 20 6c 65 | 61 73 74 20 31 20 72 6f |ed at le|ast 1 ro|
|00003590| 77 22 20 22 49 20 63 61 | 6e 6e 6f 74 20 64 69 73 |w" "I ca|nnot dis|
|000035a0| 70 6c 61 79 20 25 64 20 | 63 6f 6c 75 6d 6e 73 20 |play %d |columns |
|000035b0| 69 6e 20 74 68 61 74 20 | 77 69 6e 64 6f 77 22 20 |in that |window" |
|000035c0| 67 6f 6d 6f 6b 75 2d 73 | 61 76 65 64 2d 62 6f 61 |gomoku-s|aved-boa|
|000035d0| 72 64 2d 68 65 69 67 68 | 74 20 79 2d 6f 72 2d 6e |rd-heigh|t y-or-n|
|000035e0| 2d 70 20 66 6f 72 6d 61 | 74 20 22 44 6f 20 79 6f |-p forma|t "Do yo|
|000035f0| 75 20 72 65 61 6c 6c 79 | 20 77 61 6e 74 20 25 64 |u really| want %d|
|00003600| 20 72 6f 77 73 20 22 20 | 6d 65 73 73 61 67 65 20 | rows " |message |
|00003610| 22 4f 6e 65 20 6d 6f 6d | 65 6e 74 2c 20 70 6c 65 |"One mom|ent, ple|
|00003620| 61 73 65 2e 2e 2e 22 20 | 67 6f 6d 6f 6b 75 2d 73 |ase..." |gomoku-s|
|00003630| 74 61 72 74 2d 67 61 6d | 65 20 22 44 6f 20 79 6f |tart-gam|e "Do yo|
|00003640| 75 20 61 6c 6c 6f 77 20 | 6d 65 20 74 6f 20 70 6c |u allow |me to pl|
|00003650| 61 79 20 66 69 72 73 74 | 20 22 20 67 6f 6d 6f 6b |ay first| " gomok|
|00003660| 75 2d 65 6d 61 63 73 2d | 70 6c 61 79 73 20 67 6f |u-emacs-|plays go|
|00003670| 6d 6f 6b 75 2d 70 72 6f | 6d 70 74 2d 66 6f 72 2d |moku-pro|mpt-for-|
|00003680| 6d 6f 76 65 20 22 53 68 | 61 6c 6c 20 77 65 20 63 |move "Sh|all we c|
|00003690| 6f 6e 74 69 6e 75 65 20 | 6f 75 72 20 67 61 6d 65 |ontinue |our game|
|000036a0| 20 22 20 67 6f 6d 6f 6b | 75 2d 68 75 6d 61 6e 2d | " gomok|u-human-|
|000036b0| 72 65 73 69 67 6e 73 5d | 20 34 20 28 23 24 20 2e |resigns]| 4 (#$ .|
|000036c0| 20 31 32 37 31 30 29 20 | 28 62 79 74 65 2d 63 6f | 12710) |(byte-co|
|000036d0| 64 65 20 22 08 85 0d 00 | c1 08 21 c2 c3 c4 21 21 |de "....|..!...!!|
|000036e0| 44 87 22 20 5b 63 75 72 | 72 65 6e 74 2d 70 72 65 |D." [cur|rent-pre|
|000036f0| 66 69 78 2d 61 72 67 20 | 70 72 65 66 69 78 2d 6e |fix-arg |prefix-n|
|00003700| 75 6d 65 72 69 63 2d 76 | 61 6c 75 65 20 65 76 61 |umeric-v|alue eva|
|00003710| 6c 20 72 65 61 64 2d 6d | 69 6e 69 62 75 66 66 65 |l read-m|inibuffe|
|00003720| 72 20 22 48 65 69 67 68 | 74 3a 20 22 5d 20 34 29 |r "Heigh|t: "] 4)|
|00003730| 5d 29 0a 23 40 33 38 20 | 43 6f 6d 70 75 74 65 20 |]).#@38 |Compute |
|00003740| 45 6d 61 63 73 20 6e 65 | 78 74 20 6d 6f 76 65 20 |Emacs ne|xt move |
|00003750| 61 6e 64 20 70 6c 61 79 | 20 69 74 2e 1f 0a 28 64 |and play| it...(d|
|00003760| 65 66 61 6c 69 61 73 20 | 27 67 6f 6d 6f 6b 75 2d |efalias |'gomoku-|
|00003770| 65 6d 61 63 73 2d 70 6c | 61 79 73 20 23 5b 6e 69 |emacs-pl|ays #[ni|
|00003780| 6c 20 22 c0 20 88 09 83 | 5c 6e 00 c2 20 87 0b 84 |l ". ...|\n.. ...|
|00003790| 11 00 c4 20 87 c5 c6 21 | 88 c7 89 1e 08 1e 09 ca |... ...!|........|
|000037a0| 20 89 16 09 84 29 00 cb | cc 21 82 74 00 0e 0d 0e | ....)..|.!.t....|
|000037b0| 09 48 16 08 ce 0e 09 cf | 5c 22 88 0e 08 0e 10 59 |.H......|\".....Y|
|000037c0| 83 4d 00 d1 16 12 d3 0e | 09 cf 5c 22 88 cb d4 21 |.M......|..\"...!|
|000037d0| 82 74 00 0e 08 d5 55 83 | 5a 00 cb cc 21 82 74 00 |.t....U.|Z...!.t.|
|000037e0| 0e 16 0e 17 56 83 72 00 | 0e 18 84 72 00 d9 20 83 |....V.r.|...r.. .|
|000037f0| 72 00 cb da 21 82 74 00 | db 20 2a 87 22 20 5b 67 |r...!.t.|. *." [g|
|00003800| 6f 6d 6f 6b 75 2d 73 77 | 69 74 63 68 2d 74 6f 2d |omoku-sw|itch-to-|
|00003810| 77 69 6e 64 6f 77 20 67 | 6f 6d 6f 6b 75 2d 65 6d |window g|omoku-em|
|00003820| 61 63 73 2d 69 73 2d 63 | 6f 6d 70 75 74 69 6e 67 |acs-is-c|omputing|
|00003830| 20 67 6f 6d 6f 6b 75 2d | 63 72 61 73 68 2d 67 61 | gomoku-|crash-ga|
|00003840| 6d 65 20 67 6f 6d 6f 6b | 75 2d 67 61 6d 65 2d 69 |me gomok|u-game-i|
|00003850| 6e 2d 70 72 6f 67 72 65 | 73 73 20 67 6f 6d 6f 6b |n-progre|ss gomok|
|00003860| 75 2d 70 72 6f 6d 70 74 | 2d 66 6f 72 2d 6f 74 68 |u-prompt|-for-oth|
|00003870| 65 72 2d 67 61 6d 65 20 | 6d 65 73 73 61 67 65 20 |er-game |message |
|00003880| 22 4c 65 74 20 6d 65 20 | 74 68 69 6e 6b 2e 2e 2e |"Let me |think...|
|00003890| 22 20 6e 69 6c 20 73 63 | 6f 72 65 20 73 71 75 61 |" nil sc|ore squa|
|000038a0| 72 65 20 67 6f 6d 6f 6b | 75 2d 73 74 72 6f 6e 67 |re gomok|u-strong|
|000038b0| 65 73 74 2d 73 71 75 61 | 72 65 20 67 6f 6d 6f 6b |est-squa|re gomok|
|000038c0| 75 2d 74 65 72 6d 69 6e | 61 74 65 2d 67 61 6d 65 |u-termin|ate-game|
|000038d0| 20 6e 6f 62 6f 64 79 2d | 77 6f 6e 20 67 6f 6d 6f | nobody-|won gomo|
|000038e0| 6b 75 2d 73 63 6f 72 65 | 2d 74 61 62 6c 65 20 67 |ku-score|-table g|
|000038f0| 6f 6d 6f 6b 75 2d 70 6c | 61 79 2d 6d 6f 76 65 20 |omoku-pl|ay-move |
|00003900| 36 20 67 6f 6d 6f 6b 75 | 2d 77 69 6e 6e 69 6e 67 |6 gomoku|-winning|
|00003910| 2d 74 68 72 65 73 68 6f | 6c 64 20 74 20 67 6f 6d |-thresho|ld t gom|
|00003920| 6f 6b 75 2d 65 6d 61 63 | 73 2d 77 6f 6e 20 67 6f |oku-emac|s-won go|
|00003930| 6d 6f 6b 75 2d 66 69 6e | 64 2d 66 69 6c 6c 65 64 |moku-fin|d-filled|
|00003940| 2d 71 74 75 70 6c 65 20 | 65 6d 61 63 73 2d 77 6f |-qtuple |emacs-wo|
|00003950| 6e 20 30 20 67 6f 6d 6f | 6b 75 2d 6e 75 6d 62 65 |n 0 gomo|ku-numbe|
|00003960| 72 2d 6f 66 2d 6d 6f 76 | 65 73 20 67 6f 6d 6f 6b |r-of-mov|es gomok|
|00003970| 75 2d 64 72 61 77 2d 6c | 69 6d 69 74 20 67 6f 6d |u-draw-l|imit gom|
|00003980| 6f 6b 75 2d 68 75 6d 61 | 6e 2d 72 65 66 75 73 65 |oku-huma|n-refuse|
|00003990| 64 2d 64 72 61 77 20 67 | 6f 6d 6f 6b 75 2d 6f 66 |d-draw g|omoku-of|
|000039a0| 66 65 72 2d 61 2d 64 72 | 61 77 20 64 72 61 77 2d |fer-a-dr|aw draw-|
|000039b0| 61 67 72 65 65 64 20 67 | 6f 6d 6f 6b 75 2d 70 72 |agreed g|omoku-pr|
|000039c0| 6f 6d 70 74 2d 66 6f 72 | 2d 6d 6f 76 65 5d 20 34 |ompt-for|-move] 4|
|000039d0| 20 28 23 24 20 2e 20 31 | 34 31 33 36 29 20 6e 69 | (#$ . 1|4136) ni|
|000039e0| 6c 5d 29 0a 23 40 34 31 | 20 50 6f 73 69 74 69 6f |l]).#@41| Positio|
|000039f0| 6e 20 61 74 20 74 68 65 | 20 73 71 75 61 72 65 20 |n at the| square |
|00003a00| 77 68 65 72 65 20 79 6f | 75 20 63 6c 69 63 6b 2e |where yo|u click.|
|00003a10| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 67 6f 6d |..(defal|ias 'gom|
|00003a20| 6f 6b 75 2d 63 6c 69 63 | 6b 20 23 5b 28 63 6c 69 |oku-clic|k #[(cli|
|00003a30| 63 6b 29 20 22 c0 09 1a | c3 5c 6e 38 3a 83 0e 00 |ck) "...|.\n8:...|
|00003a40| c3 82 0f 00 c4 5c 6e 38 | 29 89 11 89 1d 40 29 21 |.....\n8|)....@)!|
|00003a50| 85 8d 00 09 89 1d 41 40 | 3a 83 2c 00 0d 41 40 40 |......A@|:.,..A@@|
|00003a60| 82 2f 00 0d 41 40 29 a7 | 85 8d 00 c6 09 89 1d 40 |./..A@).|.......@|
|00003a70| 29 21 85 8d 00 c7 09 21 | 89 11 85 8d 00 c8 09 40 |)!.....!|.......@|
|00003a80| 0e 09 5a c4 5a ca 20 5c | 5c 0e 0b 5c 5c 0e 0b c3 |..Z.Z. \|\..\\...|
|00003a90| a6 5c 5c 0e 0b c3 a5 5c | 5c 0e 0b a5 c4 5d 0e 5c |.\\....\|\....].\|
|00003aa0| 66 5e 09 41 0e 0d 5a c4 | 5a ce 1e 0f d0 c4 d1 20 |f^.A..Z.|Z...... |
|00003ab0| 5c 22 29 5c 5c 0e 12 5c | 5c 0e 12 c3 a6 5c 5c 0e |\")\\..\|\....\\.|
|00003ac0| 12 c3 a5 5c 5c 0e 12 a5 | c4 5d 0e 13 5e 5c 22 87 |...\\...|.]..^\".|
|00003ad0| 22 20 5b 77 69 6e 64 6f | 77 70 20 63 6c 69 63 6b |" [windo|wp click|
|00003ae0| 20 65 76 65 6e 74 20 32 | 20 31 20 70 6f 73 69 74 | event 2| 1 posit|
|00003af0| 69 6f 6e 20 73 65 6c 65 | 63 74 2d 77 69 6e 64 6f |ion sele|ct-windo|
|00003b00| 77 20 70 6f 73 6e 2d 63 | 6f 6c 2d 72 6f 77 20 67 |w posn-c|ol-row g|
|00003b10| 6f 6d 6f 6b 75 2d 67 6f | 74 6f 2d 78 79 20 67 6f |omoku-go|to-xy go|
|00003b20| 6d 6f 6b 75 2d 78 2d 6f | 66 66 73 65 74 20 77 69 |moku-x-o|ffset wi|
|00003b30| 6e 64 6f 77 2d 68 73 63 | 72 6f 6c 6c 20 67 6f 6d |ndow-hsc|roll gom|
|00003b40| 6f 6b 75 2d 73 71 75 61 | 72 65 2d 77 69 64 74 68 |oku-squa|re-width|
|00003b50| 20 67 6f 6d 6f 6b 75 2d | 62 6f 61 72 64 2d 77 69 | gomoku-|board-wi|
|00003b60| 64 74 68 20 67 6f 6d 6f | 6b 75 2d 79 2d 6f 66 66 |dth gomo|ku-y-off|
|00003b70| 73 65 74 20 74 20 69 6e | 68 69 62 69 74 2d 70 6f |set t in|hibit-po|
|00003b80| 69 6e 74 2d 6d 6f 74 69 | 6f 6e 2d 68 6f 6f 6b 73 |int-moti|on-hooks|
|00003b90| 20 63 6f 75 6e 74 2d 6c | 69 6e 65 73 20 77 69 6e | count-l|ines win|
|00003ba0| 64 6f 77 2d 73 74 61 72 | 74 20 67 6f 6d 6f 6b 75 |dow-star|t gomoku|
|00003bb0| 2d 73 71 75 61 72 65 2d | 68 65 69 67 68 74 20 67 |-square-|height g|
|00003bc0| 6f 6d 6f 6b 75 2d 62 6f | 61 72 64 2d 68 65 69 67 |omoku-bo|ard-heig|
|00003bd0| 68 74 5d 20 37 20 28 23 | 24 20 2e 20 31 34 38 32 |ht] 7 (#|$ . 1482|
|00003be0| 35 29 20 22 65 22 5d 29 | 0a 23 40 33 37 20 50 6c |5) "e"])|.#@37 Pl|
|00003bf0| 61 79 20 61 74 20 74 68 | 65 20 73 71 75 61 72 65 |ay at th|e square|
|00003c00| 20 77 68 65 72 65 20 79 | 6f 75 20 63 6c 69 63 6b | where y|ou click|
|00003c10| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 67 6f |...(defa|lias 'go|
|00003c20| 6d 6f 6b 75 2d 6d 6f 75 | 73 65 2d 70 6c 61 79 20 |moku-mou|se-play |
|00003c30| 23 5b 28 63 6c 69 63 6b | 29 20 22 c0 09 21 85 08 |#[(click|) "..!..|
|00003c40| 00 c2 20 87 22 20 5b 67 | 6f 6d 6f 6b 75 2d 63 6c |.. ." [g|omoku-cl|
|00003c50| 69 63 6b 20 63 6c 69 63 | 6b 20 67 6f 6d 6f 6b 75 |ick clic|k gomoku|
|00003c60| 2d 68 75 6d 61 6e 2d 70 | 6c 61 79 73 5d 20 32 20 |-human-p|lays] 2 |
|00003c70| 28 23 24 20 2e 20 31 35 | 33 34 32 29 20 22 65 22 |(#$ . 15|342) "e"|
|00003c80| 5d 29 0a 23 40 31 38 34 | 20 53 69 67 6e 61 6c 20 |]).#@184| Signal |
|00003c90| 74 6f 20 74 68 65 20 47 | 6f 6d 6f 6b 75 20 70 72 |to the G|omoku pr|
|00003ca0| 6f 67 72 61 6d 20 74 68 | 61 74 20 79 6f 75 20 68 |ogram th|at you h|
|00003cb0| 61 76 65 20 70 6c 61 79 | 65 64 2e 0a 59 6f 75 20 |ave play|ed..You |
|00003cc0| 6d 75 73 74 20 68 61 76 | 65 20 70 75 74 20 74 68 |must hav|e put th|
|00003cd0| 65 20 63 75 72 73 6f 72 | 20 6f 6e 20 74 68 65 20 |e cursor| on the |
|00003ce0| 73 71 75 61 72 65 20 77 | 68 65 72 65 20 79 6f 75 |square w|here you|
|00003cf0| 20 77 61 6e 74 20 74 6f | 20 70 6c 61 79 2e 0a 49 | want to| play..I|
|00003d00| 66 20 74 68 65 20 67 61 | 6d 65 20 69 73 20 66 69 |f the ga|me is fi|
|00003d10| 6e 69 73 68 65 64 2c 20 | 74 68 69 73 20 63 6f 6d |nished, |this com|
|00003d20| 6d 61 6e 64 20 72 65 71 | 75 65 73 74 73 20 66 6f |mand req|uests fo|
|00003d30| 72 20 61 6e 6f 74 68 65 | 72 20 67 61 6d 65 2e 1f |r anothe|r game..|
|00003d40| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 67 6f 6d 6f |.(defali|as 'gomo|
|00003d50| 6b 75 2d 68 75 6d 61 6e | 2d 70 6c 61 79 73 20 23 |ku-human|-plays #|
|00003d60| 5b 6e 69 6c 20 22 c0 20 | 88 09 83 5c 6e 00 c2 20 |[nil ". |...\n.. |
|00003d70| 87 0b 84 11 00 c4 20 87 | c5 89 1e 06 1e 07 c8 20 |...... .|....... |
|00003d80| 89 16 07 84 25 00 c9 ca | 21 82 5a 00 0e 0b 0e 07 |....%...|!.Z.....|
|00003d90| 48 cc 55 84 35 00 c9 cd | 21 82 5a 00 0e 0e 0e 07 |H.U.5...|!.Z.....|
|00003da0| 48 16 06 cf 0e 07 d0 5c | 22 88 0e 06 0e 11 59 83 |H......\|".....Y.|
|00003db0| 58 00 d2 0e 07 d0 5c 22 | 83 58 00 d3 d4 21 82 5a |X.....\"|.X...!.Z|
|00003dc0| 00 d5 20 2a 87 22 20 5b | 67 6f 6d 6f 6b 75 2d 73 |.. *." [|gomoku-s|
|00003dd0| 77 69 74 63 68 2d 74 6f | 2d 77 69 6e 64 6f 77 20 |witch-to|-window |
|00003de0| 67 6f 6d 6f 6b 75 2d 65 | 6d 61 63 73 2d 69 73 2d |gomoku-e|macs-is-|
|00003df0| 63 6f 6d 70 75 74 69 6e | 67 20 67 6f 6d 6f 6b 75 |computin|g gomoku|
|00003e00| 2d 63 72 61 73 68 2d 67 | 61 6d 65 20 67 6f 6d 6f |-crash-g|ame gomo|
|00003e10| 6b 75 2d 67 61 6d 65 2d | 69 6e 2d 70 72 6f 67 72 |ku-game-|in-progr|
|00003e20| 65 73 73 20 67 6f 6d 6f | 6b 75 2d 70 72 6f 6d 70 |ess gomo|ku-promp|
|00003e30| 74 2d 66 6f 72 2d 6f 74 | 68 65 72 2d 67 61 6d 65 |t-for-ot|her-game|
|00003e40| 20 6e 69 6c 20 73 63 6f | 72 65 20 73 71 75 61 72 | nil sco|re squar|
|00003e50| 65 20 67 6f 6d 6f 6b 75 | 2d 70 6f 69 6e 74 2d 73 |e gomoku|-point-s|
|00003e60| 71 75 61 72 65 20 65 72 | 72 6f 72 20 22 59 6f 75 |quare er|ror "You|
|00003e70| 72 20 70 6f 69 6e 74 20 | 69 73 20 6e 6f 74 20 6f |r point |is not o|
|00003e80| 6e 20 61 20 73 71 75 61 | 72 65 2e 20 52 65 74 72 |n a squa|re. Retr|
|00003e90| 79 20 21 22 20 67 6f 6d | 6f 6b 75 2d 62 6f 61 72 |y !" gom|oku-boar|
|00003ea0| 64 20 30 20 22 59 6f 75 | 72 20 70 6f 69 6e 74 20 |d 0 "You|r point |
|00003eb0| 69 73 20 6e 6f 74 20 6f | 6e 20 61 20 66 72 65 65 |is not o|n a free|
|00003ec0| 20 73 71 75 61 72 65 2e | 20 52 65 74 72 79 20 21 | square.| Retry !|
|00003ed0| 22 20 67 6f 6d 6f 6b 75 | 2d 73 63 6f 72 65 2d 74 |" gomoku|-score-t|
|00003ee0| 61 62 6c 65 20 67 6f 6d | 6f 6b 75 2d 70 6c 61 79 |able gom|oku-play|
|00003ef0| 2d 6d 6f 76 65 20 31 20 | 67 6f 6d 6f 6b 75 2d 6c |-move 1 |gomoku-l|
|00003f00| 6f 6f 73 69 6e 67 2d 74 | 68 72 65 73 68 6f 6c 64 |oosing-t|hreshold|
|00003f10| 20 67 6f 6d 6f 6b 75 2d | 66 69 6e 64 2d 66 69 6c | gomoku-|find-fil|
|00003f20| 6c 65 64 2d 71 74 75 70 | 6c 65 20 67 6f 6d 6f 6b |led-qtup|le gomok|
|00003f30| 75 2d 74 65 72 6d 69 6e | 61 74 65 2d 67 61 6d 65 |u-termin|ate-game|
|00003f40| 20 68 75 6d 61 6e 2d 77 | 6f 6e 20 67 6f 6d 6f 6b | human-w|on gomok|
|00003f50| 75 2d 65 6d 61 63 73 2d | 70 6c 61 79 73 5d 20 34 |u-emacs-|plays] 4|
|00003f60| 20 28 23 24 20 2e 20 31 | 35 34 39 37 29 20 6e 69 | (#$ . 1|5497) ni|
|00003f70| 6c 5d 29 0a 23 40 37 33 | 20 53 69 67 6e 61 6c 20 |l]).#@73| Signal |
|00003f80| 74 6f 20 74 68 65 20 47 | 6f 6d 6f 6b 75 20 70 72 |to the G|omoku pr|
|00003f90| 6f 67 72 61 6d 20 74 68 | 61 74 20 79 6f 75 20 77 |ogram th|at you w|
|00003fa0| 69 73 68 20 74 6f 20 74 | 61 6b 65 20 62 61 63 6b |ish to t|ake back|
|00003fb0| 20 79 6f 75 72 20 6c 61 | 73 74 20 6d 6f 76 65 2e | your la|st move.|
|00003fc0| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 67 6f 6d |..(defal|ias 'gom|
|00003fd0| 6f 6b 75 2d 68 75 6d 61 | 6e 2d 74 61 6b 65 73 2d |oku-huma|n-takes-|
|00003fe0| 62 61 63 6b 20 23 5b 6e | 69 6c 20 22 c0 20 88 09 |back #[n|il ". ..|
|00003ff0| 83 5c 6e 00 c2 20 87 0b | 84 19 00 c4 c5 21 88 c6 |.\n.. ..|.....!..|
|00004000| c7 21 88 c8 20 87 0e 09 | ca 55 83 24 00 c4 cb 21 |.!.. ...|.U.$...!|
|00004010| 87 c4 cc 21 88 cd 16 0e | 0e 09 1e 0f 0e 0f 0e 09 |...!....|........|
|00004020| 55 83 3d 00 d0 20 88 82 | 2f 00 29 d1 20 87 22 20 |U.=.. ..|/.). ." |
|00004030| 5b 67 6f 6d 6f 6b 75 2d | 73 77 69 74 63 68 2d 74 |[gomoku-|switch-t|
|00004040| 6f 2d 77 69 6e 64 6f 77 | 20 67 6f 6d 6f 6b 75 2d |o-window| gomoku-|
|00004050| 65 6d 61 63 73 2d 69 73 | 2d 63 6f 6d 70 75 74 69 |emacs-is|-computi|
|00004060| 6e 67 20 67 6f 6d 6f 6b | 75 2d 63 72 61 73 68 2d |ng gomok|u-crash-|
|00004070| 67 61 6d 65 20 67 6f 6d | 6f 6b 75 2d 67 61 6d 65 |game gom|oku-game|
|00004080| 2d 69 6e 2d 70 72 6f 67 | 72 65 73 73 20 6d 65 73 |-in-prog|ress mes|
|00004090| 73 61 67 65 20 22 54 6f | 6f 20 6c 61 74 65 20 66 |sage "To|o late f|
|000040a0| 6f 72 20 74 61 6b 69 6e | 67 20 62 61 63 6b 2e 2e |or takin|g back..|
|000040b0| 2e 22 20 73 69 74 2d 66 | 6f 72 20 34 20 67 6f 6d |." sit-f|or 4 gom|
|000040c0| 6f 6b 75 2d 70 72 6f 6d | 70 74 2d 66 6f 72 2d 6f |oku-prom|pt-for-o|
|000040d0| 74 68 65 72 2d 67 61 6d | 65 20 67 6f 6d 6f 6b 75 |ther-gam|e gomoku|
|000040e0| 2d 6e 75 6d 62 65 72 2d | 6f 66 2d 68 75 6d 61 6e |-number-|of-human|
|000040f0| 2d 6d 6f 76 65 73 20 30 | 20 22 59 6f 75 20 68 61 |-moves 0| "You ha|
|00004100| 76 65 20 6e 6f 74 20 70 | 6c 61 79 65 64 20 79 65 |ve not p|layed ye|
|00004110| 74 2e 2e 2e 20 59 6f 75 | 72 20 6d 6f 76 65 20 3f |t... You|r move ?|
|00004120| 22 20 22 4f 6e 65 20 6d | 6f 6d 65 6e 74 2c 20 70 |" "One m|oment, p|
|00004130| 6c 65 61 73 65 2e 2e 2e | 22 20 74 20 67 6f 6d 6f |lease...|" t gomo|
|00004140| 6b 75 2d 68 75 6d 61 6e | 2d 74 6f 6f 6b 2d 62 61 |ku-human|-took-ba|
|00004150| 63 6b 20 6e 75 6d 62 65 | 72 20 67 6f 6d 6f 6b 75 |ck numbe|r gomoku|
|00004160| 2d 74 61 6b 65 2d 62 61 | 63 6b 20 67 6f 6d 6f 6b |-take-ba|ck gomok|
|00004170| 75 2d 70 72 6f 6d 70 74 | 2d 66 6f 72 2d 6d 6f 76 |u-prompt|-for-mov|
|00004180| 65 5d 20 32 20 28 23 24 | 20 2e 20 31 36 32 34 39 |e] 2 (#$| . 16249|
|00004190| 29 20 6e 69 6c 5d 29 0a | 23 40 35 39 20 53 69 67 |) nil]).|#@59 Sig|
|000041a0| 6e 61 6c 20 74 6f 20 74 | 68 65 20 47 6f 6d 6f 6b |nal to t|he Gomok|
|000041b0| 75 20 70 72 6f 67 72 61 | 6d 20 74 68 61 74 20 79 |u progra|m that y|
|000041c0| 6f 75 20 6d 61 79 20 77 | 61 6e 74 20 74 6f 20 72 |ou may w|ant to r|
|000041d0| 65 73 69 67 6e 2e 1f 0a | 28 64 65 66 61 6c 69 61 |esign...|(defalia|
|000041e0| 73 20 27 67 6f 6d 6f 6b | 75 2d 68 75 6d 61 6e 2d |s 'gomok|u-human-|
|000041f0| 72 65 73 69 67 6e 73 20 | 23 5b 6e 69 6c 20 22 c0 |resigns |#[nil ".|
|00004200| 20 88 09 83 5c 6e 00 c2 | 20 87 0b 84 12 00 c4 c5 | ...\n..| .......|
|00004210| 21 87 c6 c7 21 83 1c 00 | c8 c9 21 87 c6 ca 21 83 |!...!...|..!...!.|
|00004220| 25 00 cb 20 87 c8 c9 21 | 87 22 20 5b 67 6f 6d 6f |%.. ...!|." [gomo|
|00004230| 6b 75 2d 73 77 69 74 63 | 68 2d 74 6f 2d 77 69 6e |ku-switc|h-to-win|
|00004240| 64 6f 77 20 67 6f 6d 6f | 6b 75 2d 65 6d 61 63 73 |dow gomo|ku-emacs|
|00004250| 2d 69 73 2d 63 6f 6d 70 | 75 74 69 6e 67 20 67 6f |-is-comp|uting go|
|00004260| 6d 6f 6b 75 2d 63 72 61 | 73 68 2d 67 61 6d 65 20 |moku-cra|sh-game |
|00004270| 67 6f 6d 6f 6b 75 2d 67 | 61 6d 65 2d 69 6e 2d 70 |gomoku-g|ame-in-p|
|00004280| 72 6f 67 72 65 73 73 20 | 6d 65 73 73 61 67 65 20 |rogress |message |
|00004290| 22 54 68 65 72 65 20 69 | 73 20 6e 6f 20 67 61 6d |"There i|s no gam|
|000042a0| 65 20 69 6e 20 70 72 6f | 67 72 65 73 73 22 20 79 |e in pro|gress" y|
|000042b0| 2d 6f 72 2d 6e 2d 70 20 | 22 59 6f 75 20 6d 65 61 |-or-n-p |"You mea|
|000042c0| 6e 2c 20 79 6f 75 20 72 | 65 73 69 67 6e 20 22 20 |n, you r|esign " |
|000042d0| 67 6f 6d 6f 6b 75 2d 74 | 65 72 6d 69 6e 61 74 65 |gomoku-t|erminate|
|000042e0| 2d 67 61 6d 65 20 68 75 | 6d 61 6e 2d 72 65 73 69 |-game hu|man-resi|
|000042f0| 67 6e 65 64 20 22 59 6f | 75 20 6d 65 61 6e 2c 20 |gned "Yo|u mean, |
|00004300| 77 65 20 63 6f 6e 74 69 | 6e 75 65 20 22 20 67 6f |we conti|nue " go|
|00004310| 6d 6f 6b 75 2d 70 72 6f | 6d 70 74 2d 66 6f 72 2d |moku-pro|mpt-for-|
|00004320| 6d 6f 76 65 5d 20 32 20 | 28 23 24 20 2e 20 31 36 |move] 2 |(#$ . 16|
|00004330| 37 39 37 29 20 6e 69 6c | 5d 29 0a 23 40 34 34 20 |797) nil|]).#@44 |
|00004340| 44 69 73 70 6c 61 79 20 | 61 20 6d 65 73 73 61 67 |Display |a messag|
|00004350| 65 20 61 73 6b 69 6e 67 | 20 66 6f 72 20 48 75 6d |e asking| for Hum|
|00004360| 61 6e 27 73 20 6d 6f 76 | 65 2e 1f 0a 28 64 65 66 |an's mov|e...(def|
|00004370| 61 6c 69 61 73 20 27 67 | 6f 6d 6f 6b 75 2d 70 72 |alias 'g|omoku-pr|
|00004380| 6f 6d 70 74 2d 66 6f 72 | 2d 6d 6f 76 65 20 23 5b |ompt-for|-move #[|
|00004390| 6e 69 6c 20 22 c0 09 c2 | 55 83 0b 00 c3 82 5c 66 |nil "...|U.....\f|
|000043a0| 00 c4 21 88 8a c5 20 71 | 29 87 22 20 5b 6d 65 73 |..!... q|)." [mes|
|000043b0| 73 61 67 65 20 67 6f 6d | 6f 6b 75 2d 6e 75 6d 62 |sage gom|oku-numb|
|000043c0| 65 72 2d 6f 66 2d 68 75 | 6d 61 6e 2d 6d 6f 76 65 |er-of-hu|man-move|
|000043d0| 73 20 30 20 22 59 6f 75 | 72 20 6d 6f 76 65 20 3f |s 0 "You|r move ?|
|000043e0| 20 28 6d 6f 76 65 20 74 | 6f 20 61 20 66 72 65 65 | (move t|o a free|
|000043f0| 20 73 71 75 61 72 65 20 | 61 6e 64 20 68 69 74 20 | square |and hit |
|00004400| 58 2c 20 52 45 54 20 2e | 2e 2e 29 22 20 22 59 6f |X, RET .|..)" "Yo|
|00004410| 75 72 20 6d 6f 76 65 20 | 3f 22 20 6f 74 68 65 72 |ur move |?" other|
|00004420| 2d 62 75 66 66 65 72 5d | 20 33 20 28 23 24 20 2e |-buffer]| 3 (#$ .|
|00004430| 20 31 37 32 31 36 29 5d | 29 0a 23 40 33 37 20 41 | 17216)]|).#@37 A|
|00004440| 73 6b 20 66 6f 72 20 61 | 6e 6f 74 68 65 72 20 67 |sk for a|nother g|
|00004450| 61 6d 65 2c 20 61 6e 64 | 20 73 74 61 72 74 20 69 |ame, and| start i|
|00004460| 74 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 67 |t...(def|alias 'g|
|00004470| 6f 6d 6f 6b 75 2d 70 72 | 6f 6d 70 74 2d 66 6f 72 |omoku-pr|ompt-for|
|00004480| 2d 6f 74 68 65 72 2d 67 | 61 6d 65 20 23 5b 6e 69 |-other-g|ame #[ni|
|00004490| 6c 20 22 c0 c1 21 83 0b | 00 c2 0b 5c 66 5c 22 87 |l "..!..|...\f\".|
|000044a0| c5 c6 21 87 22 20 5b 79 | 2d 6f 72 2d 6e 2d 70 20 |..!." [y|-or-n-p |
|000044b0| 22 41 6e 6f 74 68 65 72 | 20 67 61 6d 65 20 22 20 |"Another| game " |
|000044c0| 67 6f 6d 6f 6b 75 20 67 | 6f 6d 6f 6b 75 2d 62 6f |gomoku g|omoku-bo|
|000044d0| 61 72 64 2d 77 69 64 74 | 68 20 67 6f 6d 6f 6b 75 |ard-widt|h gomoku|
|000044e0| 2d 62 6f 61 72 64 2d 68 | 65 69 67 68 74 20 6d 65 |-board-h|eight me|
|000044f0| 73 73 61 67 65 20 22 43 | 68 69 63 6b 65 6e 20 21 |ssage "C|hicken !|
|00004500| 22 5d 20 33 20 28 23 24 | 20 2e 20 31 37 34 37 31 |"] 3 (#$| . 17471|
|00004510| 29 5d 29 0a 23 40 34 39 | 20 4f 66 66 65 72 20 61 |)]).#@49| Offer a|
|00004520| 20 64 72 61 77 20 61 6e | 64 20 72 65 74 75 72 6e | draw an|d return|
|00004530| 20 54 20 69 66 20 48 75 | 6d 61 6e 20 61 63 63 65 | T if Hu|man acce|
|00004540| 70 74 65 64 20 69 74 2e | 1f 0a 28 64 65 66 61 6c |pted it.|..(defal|
|00004550| 69 61 73 20 27 67 6f 6d | 6f 6b 75 2d 6f 66 66 65 |ias 'gom|oku-offe|
|00004560| 72 2d 61 2d 64 72 61 77 | 20 23 5b 6e 69 6c 20 22 |r-a-draw| #[nil "|
|00004570| c0 c1 21 86 5c 6e 00 c2 | 89 13 3f 87 22 20 5b 79 |..!.\n..|..?." [y|
|00004580| 2d 6f 72 2d 6e 2d 70 20 | 22 49 20 6f 66 66 65 72 |-or-n-p |"I offer|
|00004590| 20 79 6f 75 20 61 20 64 | 72 61 77 2e 20 44 6f 20 | you a d|raw. Do |
|000045a0| 79 6f 75 20 61 63 63 65 | 70 74 20 69 74 20 22 20 |you acce|pt it " |
|000045b0| 74 20 67 6f 6d 6f 6b 75 | 2d 68 75 6d 61 6e 2d 72 |t gomoku|-human-r|
|000045c0| 65 66 75 73 65 64 2d 64 | 72 61 77 5d 20 32 20 28 |efused-d|raw] 2 (|
|000045d0| 23 24 20 2e 20 31 37 36 | 38 39 29 5d 29 0a 23 40 |#$ . 176|89)]).#@|
|000045e0| 35 38 20 2a 48 6f 72 69 | 7a 6f 6e 74 61 6c 20 73 |58 *Hori|zontal s|
|000045f0| 70 61 63 69 6e 67 20 62 | 65 74 77 65 65 6e 20 73 |pacing b|etween s|
|00004600| 71 75 61 72 65 73 20 6f | 6e 20 74 68 65 20 47 6f |quares o|n the Go|
|00004610| 6d 6f 6b 75 20 62 6f 61 | 72 64 2e 1f 0a 28 64 65 |moku boa|rd...(de|
|00004620| 66 63 6f 6e 73 74 20 67 | 6f 6d 6f 6b 75 2d 73 71 |fconst g|omoku-sq|
|00004630| 75 61 72 65 2d 77 69 64 | 74 68 20 34 20 28 23 24 |uare-wid|th 4 (#$|
|00004640| 20 2e 20 2d 31 37 38 39 | 31 29 29 0a 23 40 35 36 | . -1789|1)).#@56|
|00004650| 20 2a 56 65 72 74 69 63 | 61 6c 20 73 70 61 63 69 | *Vertic|al spaci|
|00004660| 6e 67 20 62 65 74 77 65 | 65 6e 20 73 71 75 61 72 |ng betwe|en squar|
|00004670| 65 73 20 6f 6e 20 74 68 | 65 20 47 6f 6d 6f 6b 75 |es on th|e Gomoku|
|00004680| 20 62 6f 61 72 64 2e 1f | 0a 28 64 65 66 63 6f 6e | board..|.(defcon|
|00004690| 73 74 20 67 6f 6d 6f 6b | 75 2d 73 71 75 61 72 65 |st gomok|u-square|
|000046a0| 2d 68 65 69 67 68 74 20 | 32 20 28 23 24 20 2e 20 |-height |2 (#$ . |
|000046b0| 2d 31 38 30 30 31 29 29 | 0a 23 40 37 33 20 2a 4e |-18001))|.#@73 *N|
|000046c0| 75 6d 62 65 72 20 6f 66 | 20 63 6f 6c 75 6d 6e 73 |umber of| columns|
|000046d0| 20 62 65 74 77 65 65 6e | 20 74 68 65 20 47 6f 6d | between| the Gom|
|000046e0| 6f 6b 75 20 62 6f 61 72 | 64 20 61 6e 64 20 74 68 |oku boar|d and th|
|000046f0| 65 20 73 69 64 65 20 6f | 66 20 74 68 65 20 77 69 |e side o|f the wi|
|00004700| 6e 64 6f 77 2e 1f 0a 28 | 64 65 66 63 6f 6e 73 74 |ndow...(|defconst|
|00004710| 20 67 6f 6d 6f 6b 75 2d | 78 2d 6f 66 66 73 65 74 | gomoku-|x-offset|
|00004720| 20 33 20 28 23 24 20 2e | 20 2d 31 38 31 31 30 29 | 3 (#$ .| -18110)|
|00004730| 29 0a 23 40 37 30 20 2a | 4e 75 6d 62 65 72 20 6f |).#@70 *|Number o|
|00004740| 66 20 6c 69 6e 65 73 20 | 62 65 74 77 65 65 6e 20 |f lines |between |
|00004750| 74 68 65 20 47 6f 6d 6f | 6b 75 20 62 6f 61 72 64 |the Gomo|ku board|
|00004760| 20 61 6e 64 20 74 68 65 | 20 74 6f 70 20 6f 66 20 | and the| top of |
|00004770| 74 68 65 20 77 69 6e 64 | 6f 77 2e 1f 0a 28 64 65 |the wind|ow...(de|
|00004780| 66 63 6f 6e 73 74 20 67 | 6f 6d 6f 6b 75 2d 79 2d |fconst g|omoku-y-|
|00004790| 6f 66 66 73 65 74 20 31 | 20 28 23 24 20 2e 20 2d |offset 1| (#$ . -|
|000047a0| 31 38 32 33 31 29 29 0a | 23 40 35 34 20 4c 61 72 |18231)).|#@54 Lar|
|000047b0| 67 65 73 74 20 70 6f 73 | 73 69 62 6c 65 20 62 6f |gest pos|sible bo|
|000047c0| 61 72 64 20 77 69 64 74 | 68 20 66 6f 72 20 74 68 |ard widt|h for th|
|000047d0| 65 20 63 75 72 72 65 6e | 74 20 77 69 6e 64 6f 77 |e curren|t window|
|000047e0| 2e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 67 6f |...(defa|lias 'go|
|000047f0| 6d 6f 6b 75 2d 6d 61 78 | 2d 77 69 64 74 68 20 23 |moku-max|-width #|
|00004800| 5b 6e 69 6c 20 22 c0 c1 | 20 21 5c 6e 5a 5c 6e 5a |[nil "..| !\nZ\nZ|
|00004810| c3 5a 5c 66 a5 54 87 22 | 20 5b 77 69 6e 64 6f 77 |.Z\f.T."| [window|
|00004820| 2d 77 69 64 74 68 20 73 | 65 6c 65 63 74 65 64 2d |-width s|elected-|
|00004830| 77 69 6e 64 6f 77 20 67 | 6f 6d 6f 6b 75 2d 78 2d |window g|omoku-x-|
|00004840| 6f 66 66 73 65 74 20 31 | 20 67 6f 6d 6f 6b 75 2d |offset 1| gomoku-|
|00004850| 73 71 75 61 72 65 2d 77 | 69 64 74 68 5d 20 32 20 |square-w|idth] 2 |
|00004860| 28 23 24 20 2e 20 31 38 | 33 34 39 29 5d 29 0a 23 |(#$ . 18|349)]).#|
|00004870| 40 35 35 20 4c 61 72 67 | 65 73 74 20 70 6f 73 73 |@55 Larg|est poss|
|00004880| 69 62 6c 65 20 62 6f 61 | 72 64 20 68 65 69 67 68 |ible boa|rd heigh|
|00004890| 74 20 66 6f 72 20 74 68 | 65 20 63 75 72 72 65 6e |t for th|e curren|
|000048a0| 74 20 77 69 6e 64 6f 77 | 2e 1f 0a 28 64 65 66 61 |t window|...(defa|
|000048b0| 6c 69 61 73 20 27 67 6f | 6d 6f 6b 75 2d 6d 61 78 |lias 'go|moku-max|
|000048c0| 2d 68 65 69 67 68 74 20 | 23 5b 6e 69 6c 20 22 c0 |-height |#[nil ".|
|000048d0| c1 20 21 5c 6e 5a 5c 6e | 5a c3 5a 5c 66 a5 54 87 |. !\nZ\n|Z.Z\f.T.|
|000048e0| 22 20 5b 77 69 6e 64 6f | 77 2d 68 65 69 67 68 74 |" [windo|w-height|
|000048f0| 20 73 65 6c 65 63 74 65 | 64 2d 77 69 6e 64 6f 77 | selecte|d-window|
|00004900| 20 67 6f 6d 6f 6b 75 2d | 79 2d 6f 66 66 73 65 74 | gomoku-|y-offset|
|00004910| 20 32 20 67 6f 6d 6f 6b | 75 2d 73 71 75 61 72 65 | 2 gomok|u-square|
|00004920| 2d 68 65 69 67 68 74 5d | 20 32 20 28 23 24 20 2e |-height]| 2 (#$ .|
|00004930| 20 31 38 35 34 38 29 5d | 29 0a 23 40 33 38 20 52 | 18548)]|).#@38 R|
|00004940| 65 74 75 72 6e 20 74 68 | 65 20 62 6f 61 72 64 20 |eturn th|e board |
|00004950| 72 6f 77 20 77 68 65 72 | 65 20 70 6f 69 6e 74 20 |row wher|e point |
|00004960| 69 73 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |is...(de|falias '|
|00004970| 67 6f 6d 6f 6b 75 2d 70 | 6f 69 6e 74 2d 79 20 23 |gomoku-p|oint-y #|
|00004980| 5b 6e 69 6c 20 22 c0 19 | c2 c3 60 5c 22 5c 66 5a |[nil "..|..`\"\fZ|
|00004990| 6e 83 10 00 c5 82 11 00 | c3 5a 0e 06 a5 54 29 87 |n.......|.Z...T).|
|000049a0| 22 20 5b 74 20 69 6e 68 | 69 62 69 74 2d 70 6f 69 |" [t inh|ibit-poi|
|000049b0| 6e 74 2d 6d 6f 74 69 6f | 6e 2d 68 6f 6f 6b 73 20 |nt-motio|n-hooks |
|000049c0| 63 6f 75 6e 74 2d 6c 69 | 6e 65 73 20 31 20 67 6f |count-li|nes 1 go|
|000049d0| 6d 6f 6b 75 2d 79 2d 6f | 66 66 73 65 74 20 30 20 |moku-y-o|ffset 0 |
|000049e0| 67 6f 6d 6f 6b 75 2d 73 | 71 75 61 72 65 2d 68 65 |gomoku-s|quare-he|
|000049f0| 69 67 68 74 5d 20 33 20 | 28 23 24 20 2e 20 31 38 |ight] 3 |(#$ . 18|
|00004a00| 37 35 31 29 5d 29 0a 23 | 40 34 35 20 52 65 74 75 |751)]).#|@45 Retu|
|00004a10| 72 6e 20 74 68 65 20 69 | 6e 64 65 78 20 6f 66 20 |rn the i|ndex of |
|00004a20| 74 68 65 20 73 71 75 61 | 72 65 20 70 6f 69 6e 74 |the squa|re point|
|00004a30| 20 69 73 20 6f 6e 2e 1f | 0a 28 64 65 66 61 6c 69 | is on..|.(defali|
|00004a40| 61 73 20 27 67 6f 6d 6f | 6b 75 2d 70 6f 69 6e 74 |as 'gomo|ku-point|
|00004a50| 2d 73 71 75 61 72 65 20 | 23 5b 6e 69 6c 20 22 c0 |-square |#[nil ".|
|00004a60| 19 c2 69 0b 5a 5c 66 a5 | 54 c5 20 5c 22 29 87 22 |..i.Z\f.|T. \")."|
|00004a70| 20 5b 74 20 69 6e 68 69 | 62 69 74 2d 70 6f 69 6e | [t inhi|bit-poin|
|00004a80| 74 2d 6d 6f 74 69 6f 6e | 2d 68 6f 6f 6b 73 20 67 |t-motion|-hooks g|
|00004a90| 6f 6d 6f 6b 75 2d 78 79 | 2d 74 6f 2d 69 6e 64 65 |omoku-xy|-to-inde|
|00004aa0| 78 20 67 6f 6d 6f 6b 75 | 2d 78 2d 6f 66 66 73 65 |x gomoku|-x-offse|
|00004ab0| 74 20 67 6f 6d 6f 6b 75 | 2d 73 71 75 61 72 65 2d |t gomoku|-square-|
|00004ac0| 77 69 64 74 68 20 67 6f | 6d 6f 6b 75 2d 70 6f 69 |width go|moku-poi|
|00004ad0| 6e 74 2d 79 5d 20 33 20 | 28 23 24 20 2e 20 31 38 |nt-y] 3 |(#$ . 18|
|00004ae0| 39 35 36 29 5d 29 0a 23 | 40 33 36 20 4d 6f 76 65 |956)]).#|@36 Move|
|00004af0| 20 70 6f 69 6e 74 20 74 | 6f 20 73 71 75 61 72 65 | point t|o square|
|00004b00| 20 6e 75 6d 62 65 72 20 | 49 4e 44 45 58 2e 1f 0a | number |INDEX...|
|00004b10| 28 64 65 66 61 6c 69 61 | 73 20 27 67 6f 6d 6f 6b |(defalia|s 'gomok|
|00004b20| 75 2d 67 6f 74 6f 2d 73 | 71 75 61 72 65 20 23 5b |u-goto-s|quare #[|
|00004b30| 28 69 6e 64 65 78 29 20 | 22 c0 c1 5c 6e 21 c3 5c |(index) |"..\n!.\|
|00004b40| 6e 21 5c 22 87 22 20 5b | 67 6f 6d 6f 6b 75 2d 67 |n!\"." [|gomoku-g|
|00004b50| 6f 74 6f 2d 78 79 20 67 | 6f 6d 6f 6b 75 2d 69 6e |oto-xy g|omoku-in|
|00004b60| 64 65 78 2d 74 6f 2d 78 | 20 69 6e 64 65 78 20 67 |dex-to-x| index g|
|00004b70| 6f 6d 6f 6b 75 2d 69 6e | 64 65 78 2d 74 6f 2d 79 |omoku-in|dex-to-y|
|00004b80| 5d 20 34 20 28 23 24 20 | 2e 20 31 39 31 38 30 29 |] 4 (#$ |. 19180)|
|00004b90| 5d 29 0a 23 40 33 38 20 | 4d 6f 76 65 20 70 6f 69 |]).#@38 |Move poi|
|00004ba0| 6e 74 20 74 6f 20 73 71 | 75 61 72 65 20 61 74 20 |nt to sq|uare at |
|00004bb0| 58 2c 20 59 20 63 6f 6f | 72 64 73 2e 1f 0a 28 64 |X, Y coo|rds...(d|
|00004bc0| 65 66 61 6c 69 61 73 20 | 27 67 6f 6d 6f 6b 75 2d |efalias |'gomoku-|
|00004bd0| 67 6f 74 6f 2d 78 79 20 | 23 5b 28 78 20 79 29 20 |goto-xy |#[(x y) |
|00004be0| 22 c0 19 c2 0b 5c 66 0d | 53 5f 5c 5c c6 5c 5c 21 |"....\f.|S_\\.\\!|
|00004bf0| 88 29 c7 0e 08 0e 09 0e | 5c 6e 53 5f 5c 5c 21 87 |.)......|\nS_\\!.|
|00004c00| 22 20 5b 74 20 69 6e 68 | 69 62 69 74 2d 70 6f 69 |" [t inh|ibit-poi|
|00004c10| 6e 74 2d 6d 6f 74 69 6f | 6e 2d 68 6f 6f 6b 73 20 |nt-motio|n-hooks |
|00004c20| 67 6f 74 6f 2d 6c 69 6e | 65 20 67 6f 6d 6f 6b 75 |goto-lin|e gomoku|
|00004c30| 2d 79 2d 6f 66 66 73 65 | 74 20 67 6f 6d 6f 6b 75 |-y-offse|t gomoku|
|00004c40| 2d 73 71 75 61 72 65 2d | 68 65 69 67 68 74 20 79 |-square-|height y|
|00004c50| 20 31 20 6d 6f 76 65 2d | 74 6f 2d 63 6f 6c 75 6d | 1 move-|to-colum|
|00004c60| 6e 20 67 6f 6d 6f 6b 75 | 2d 78 2d 6f 66 66 73 65 |n gomoku|-x-offse|
|00004c70| 74 20 67 6f 6d 6f 6b 75 | 2d 73 71 75 61 72 65 2d |t gomoku|-square-|
|00004c80| 77 69 64 74 68 20 78 5d | 20 34 20 28 23 24 20 2e |width x]| 4 (#$ .|
|00004c90| 20 31 39 33 35 32 29 5d | 29 0a 23 40 37 31 20 44 | 19352)]|).#@71 D|
|00004ca0| 72 61 77 20 27 58 27 2c | 20 27 4f 27 20 6f 72 20 |raw 'X',| 'O' or |
|00004cb0| 27 2e 27 20 6f 6e 20 53 | 51 55 41 52 45 20 64 65 |'.' on S|QUARE de|
|00004cc0| 70 65 6e 64 69 6e 67 20 | 6f 6e 20 56 41 4c 55 45 |pending |on VALUE|
|00004cd0| 2c 20 6c 65 61 76 65 20 | 70 6f 69 6e 74 20 74 68 |, leave |point th|
|00004ce0| 65 72 65 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ere...(d|efalias |
|00004cf0| 27 67 6f 6d 6f 6b 75 2d | 70 6c 6f 74 2d 73 71 75 |'gomoku-|plot-squ|
|00004d00| 61 72 65 20 23 5b 28 73 | 71 75 61 72 65 20 76 61 |are #[(s|quare va|
|00004d10| 6c 75 65 29 20 22 08 c1 | 55 84 5c 6e 00 c2 0b 21 |lue) "..|U.\n...!|
|00004d20| 88 c4 89 1d 1e 06 c7 08 | c1 55 83 1a 00 c8 82 25 |........|.U.....%|
|00004d30| 00 08 c9 55 83 24 00 ca | 82 25 00 cb 21 88 0e 5c |...U.$..|.%..!..\|
|00004d40| 66 83 3a 00 cd 08 21 83 | 3a 00 ce 60 53 60 cf d0 |f.:...!.|:..`S`..|
|00004d50| 24 88 d1 c1 21 88 d2 c1 | 21 88 2a d3 d4 21 87 22 |$...!...|!.*..!."|
|00004d60| 20 5b 76 61 6c 75 65 20 | 31 20 67 6f 6d 6f 6b 75 | [value |1 gomoku|
|00004d70| 2d 67 6f 74 6f 2d 73 71 | 75 61 72 65 20 73 71 75 |-goto-sq|uare squ|
|00004d80| 61 72 65 20 74 20 69 6e | 68 69 62 69 74 2d 70 6f |are t in|hibit-po|
|00004d90| 69 6e 74 2d 6d 6f 74 69 | 6f 6e 2d 68 6f 6f 6b 73 |int-moti|on-hooks|
|00004da0| 20 69 6e 68 69 62 69 74 | 2d 72 65 61 64 2d 6f 6e | inhibit|-read-on|
|00004db0| 6c 79 20 69 6e 73 65 72 | 74 2d 61 6e 64 2d 69 6e |ly inser|t-and-in|
|00004dc0| 68 65 72 69 74 20 38 38 | 20 36 20 37 39 20 34 36 |herit 88| 6 79 46|
|00004dd0| 20 77 69 6e 64 6f 77 2d | 73 79 73 74 65 6d 20 7a | window-|system z|
|00004de0| 65 72 6f 70 20 70 75 74 | 2d 74 65 78 74 2d 70 72 |erop put|-text-pr|
|00004df0| 6f 70 65 72 74 79 20 6d | 6f 75 73 65 2d 66 61 63 |operty m|ouse-fac|
|00004e00| 65 20 68 69 67 68 6c 69 | 67 68 74 20 64 65 6c 65 |e highli|ght dele|
|00004e10| 74 65 2d 63 68 61 72 20 | 62 61 63 6b 77 61 72 64 |te-char |backward|
|00004e20| 2d 63 68 61 72 20 73 69 | 74 2d 66 6f 72 20 30 5d |-char si|t-for 0]|
|00004e30| 20 35 20 28 23 24 20 2e | 20 31 39 36 31 35 29 5d | 5 (#$ .| 19615)]|
|00004e40| 29 0a 23 40 33 33 20 44 | 69 73 70 6c 61 79 20 61 |).#@33 D|isplay a|
|00004e50| 6e 20 4e 20 62 79 20 4d | 20 47 6f 6d 6f 6b 75 20 |n N by M| Gomoku |
|00004e60| 62 6f 61 72 64 2e 1f 0a | 28 64 65 66 61 6c 69 61 |board...|(defalia|
|00004e70| 73 20 27 67 6f 6d 6f 6b | 75 2d 69 6e 69 74 2d 64 |s 'gomok|u-init-d|
|00004e80| 69 73 70 6c 61 79 20 23 | 5b 28 6e 20 6d 29 20 22 |isplay #|[(n m) "|
|00004e90| c0 70 21 88 c1 c2 c3 c1 | 5c 66 c3 89 1d 1e 06 1e |.p!.....|\f......|
|00004ea0| 07 1e 08 1e 09 1e 5c 6e | 1e 0b 0e 5c 66 0e 0d a6 |......\n|...\f...|
|00004eb0| ce 55 83 27 00 0e 0d 82 | 35 00 0e 5c 66 0e 0d a6 |.U.'....|5..\f...|
|00004ec0| 0e 0d 5c 5c c2 5c 5c cf | a5 cf 5d 16 10 d1 20 88 |..\\.\\.|..]... .|
|00004ed0| d2 0e 13 21 88 0e 14 16 | 06 0e 5c 66 0e 0d 5a 15 |...!....|..\f..Z.|
|00004ee0| 0e 06 53 89 16 06 ce 59 | 83 bc 00 d5 d6 0d 0e 0d |..S....Y|........|
|00004ef0| 5c 5c 89 15 69 5a 0e 10 | a5 5c 22 88 d5 d7 0d 69 |\\..iZ..|.\"....i|
|00004f00| 5a 5c 22 88 0e 08 3f 89 | 16 08 83 7b 00 d8 0e 5c |Z\"...?.|...{...\|
|00004f10| 6e 60 c8 cf 24 88 0e 06 | ce 55 83 a6 00 0e 07 5c |n`..$...|.U.....\|
|00004f20| 66 cf 5a 55 83 a6 00 0e | 07 d9 59 83 a3 00 da 70 |f.ZU....|..Y....p|
|00004f30| 0e 09 60 23 88 0e 07 cf | 5a 89 16 07 82 8d 00 64 |..`#....|Z......d|
|00004f40| 62 88 60 16 5c 6e db 63 | 88 0e 1c 83 49 00 d8 0e |b.`.\n.c|....I...|
|00004f50| 5c 6e 60 dd de 24 88 82 | 49 00 0e 07 53 89 16 07 |\n`..$..|I...S...|
|00004f60| ce 56 83 dc 00 0e 07 5c | 66 53 55 83 d3 00 0e 5c |.V.....\|fSU....\|
|00004f70| 6e 16 09 d5 df 0e 20 5c | 22 88 82 3f 00 c2 66 db |n..... \|"..?..f.|
|00004f80| 3d 84 ea 00 d8 c2 cf e1 | e2 24 88 0e 08 84 f7 00 |=.......|.$......|
|00004f90| d8 0e 5c 6e 60 c8 cf 24 | 88 d8 0e 5c 6e 60 e1 e3 |..\n`..$|...\n`..|
|00004fa0| 24 88 d8 65 60 e4 e5 24 | 88 2e 07 e6 0e 14 54 cf |$..e`..$|......T.|
|00004fb0| a5 5c 66 54 cf a5 5c 22 | 88 e7 ce 21 87 22 20 5b |.\fT..\"|...!." [|
|00004fc0| 62 75 66 66 65 72 2d 64 | 69 73 61 62 6c 65 2d 75 |buffer-d|isable-u|
|00004fd0| 6e 64 6f 20 74 20 31 20 | 6e 69 6c 20 6d 20 78 20 |ndo t 1 |nil m x |
|00004fe0| 6a 20 69 20 69 6e 74 61 | 6e 67 69 62 6c 65 20 6f |j i inta|ngible o|
|00004ff0| 70 6f 69 6e 74 20 70 6f | 69 6e 74 20 69 6e 68 69 |point po|int inhi|
|00005000| 62 69 74 2d 72 65 61 64 | 2d 6f 6e 6c 79 20 67 6f |bit-read|-only go|
|00005010| 6d 6f 6b 75 2d 78 2d 6f | 66 66 73 65 74 20 67 6f |moku-x-o|ffset go|
|00005020| 6d 6f 6b 75 2d 73 71 75 | 61 72 65 2d 77 69 64 74 |moku-squ|are-widt|
|00005030| 68 20 30 20 32 20 74 61 | 62 2d 77 69 64 74 68 20 |h 0 2 ta|b-width |
|00005040| 65 72 61 73 65 2d 62 75 | 66 66 65 72 20 6e 65 77 |erase-bu|ffer new|
|00005050| 6c 69 6e 65 20 67 6f 6d | 6f 6b 75 2d 79 2d 6f 66 |line gom|oku-y-of|
|00005060| 66 73 65 74 20 6e 20 69 | 6e 73 65 72 74 2d 63 68 |fset n i|nsert-ch|
|00005070| 61 72 20 39 20 33 32 20 | 70 75 74 2d 74 65 78 74 |ar 9 32 |put-text|
|00005080| 2d 70 72 6f 70 65 72 74 | 79 20 33 20 61 70 70 65 |-propert|y 3 appe|
|00005090| 6e 64 2d 74 6f 2d 62 75 | 66 66 65 72 20 34 36 20 |nd-to-bu|ffer 46 |
|000050a0| 77 69 6e 64 6f 77 2d 73 | 79 73 74 65 6d 20 6d 6f |window-s|ystem mo|
|000050b0| 75 73 65 2d 66 61 63 65 | 20 68 69 67 68 6c 69 67 |use-face| highlig|
|000050c0| 68 74 20 31 30 20 67 6f | 6d 6f 6b 75 2d 73 71 75 |ht 10 go|moku-squ|
|000050d0| 61 72 65 2d 68 65 69 67 | 68 74 20 70 6f 69 6e 74 |are-heig|ht point|
|000050e0| 2d 65 6e 74 65 72 65 64 | 20 23 5b 28 78 20 78 29 |-entered| #[(x x)|
|000050f0| 20 22 6f 85 06 00 c0 75 | 87 22 20 5b 6e 69 6c 5d | "o....u|." [nil]|
|00005100| 20 31 5d 20 23 5b 28 78 | 20 78 29 20 22 6d 85 06 | 1] #[(x| x) "m..|
|00005110| 00 c0 20 87 22 20 5b 62 | 61 63 6b 77 61 72 64 2d |.. ." [b|ackward-|
|00005120| 63 68 61 72 5d 20 31 5d | 20 63 61 74 65 67 6f 72 |char] 1]| categor|
|00005130| 79 20 67 6f 6d 6f 6b 75 | 2d 6d 6f 64 65 20 67 6f |y gomoku|-mode go|
|00005140| 6d 6f 6b 75 2d 67 6f 74 | 6f 2d 78 79 20 73 69 74 |moku-got|o-xy sit|
|00005150| 2d 66 6f 72 5d 20 38 20 | 28 23 24 20 2e 20 32 30 |-for] 8 |(#$ . 20|
|00005160| 30 33 39 29 5d 29 0a 23 | 40 37 32 20 4f 62 6e 6f |039)]).#|@72 Obno|
|00005170| 78 69 6f 75 73 6c 79 20 | 64 69 73 70 6c 61 79 20 |xiously |display |
|00005180| 73 6f 6d 65 20 73 74 61 | 74 69 73 74 69 63 73 20 |some sta|tistics |
|00005190| 61 62 6f 75 74 20 70 72 | 65 76 69 6f 75 73 20 67 |about pr|evious g|
|000051a0| 61 6d 65 73 20 69 6e 20 | 6d 6f 64 65 20 6c 69 6e |ames in |mode lin|
|000051b0| 65 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 67 |e...(def|alias 'g|
|000051c0| 6f 6d 6f 6b 75 2d 64 69 | 73 70 6c 61 79 2d 73 74 |omoku-di|splay-st|
|000051d0| 61 74 69 73 74 69 63 73 | 20 23 5b 6e 69 6c 20 22 |atistics| #[nil "|
|000051e0| c0 c1 5c 6e 0b 5c 66 c5 | 55 83 0e 00 c6 82 12 00 |..\n.\f.|U.......|
|000051f0| c0 c7 5c 66 5c 22 24 16 | 08 c9 20 87 22 20 5b 66 |..\f\"$.|.. ." [f|
|00005200| 6f 72 6d 61 74 20 22 3a | 20 57 6f 6e 20 25 64 2c |ormat ":| Won %d,|
|00005210| 20 6c 6f 73 74 20 25 64 | 25 73 22 20 67 6f 6d 6f | lost %d|%s" gomo|
|00005220| 6b 75 2d 6e 75 6d 62 65 | 72 2d 6f 66 2d 68 75 6d |ku-numbe|r-of-hum|
|00005230| 61 6e 2d 77 69 6e 73 20 | 67 6f 6d 6f 6b 75 2d 6e |an-wins |gomoku-n|
|00005240| 75 6d 62 65 72 2d 6f 66 | 2d 65 6d 61 63 73 2d 77 |umber-of|-emacs-w|
|00005250| 69 6e 73 20 67 6f 6d 6f | 6b 75 2d 6e 75 6d 62 65 |ins gomo|ku-numbe|
|00005260| 72 2d 6f 66 2d 64 72 61 | 77 73 20 30 20 22 22 20 |r-of-dra|ws 0 "" |
|00005270| 22 2c 20 64 72 65 77 20 | 25 64 22 20 6d 6f 64 65 |", drew |%d" mode|
|00005280| 2d 6c 69 6e 65 2d 70 72 | 6f 63 65 73 73 20 66 6f |-line-pr|ocess fo|
|00005290| 72 63 65 2d 6d 6f 64 65 | 2d 6c 69 6e 65 2d 75 70 |rce-mode|-line-up|
|000052a0| 64 61 74 65 5d 20 37 20 | 28 23 24 20 2e 20 32 30 |date] 7 |(#$ . 20|
|000052b0| 38 34 34 29 5d 29 0a 23 | 40 35 31 20 46 69 6e 64 |844)]).#|@51 Find|
|000052c0| 20 6f 72 20 63 72 65 61 | 74 65 20 74 68 65 20 47 | or crea|te the G|
|000052d0| 6f 6d 6f 6b 75 20 62 75 | 66 66 65 72 2c 20 61 6e |omoku bu|ffer, an|
|000052e0| 64 20 64 69 73 70 6c 61 | 79 20 69 74 2e 1f 0a 28 |d displa|y it...(|
|000052f0| 64 65 66 61 6c 69 61 73 | 20 27 67 6f 6d 6f 6b 75 |defalias| 'gomoku|
|00005300| 2d 73 77 69 74 63 68 2d | 74 6f 2d 77 69 6e 64 6f |-switch-|to-windo|
|00005310| 77 20 23 5b 6e 69 6c 20 | 22 c0 c1 21 89 1a 83 0e |w #[nil |"..!....|
|00005320| 00 c3 5c 6e 21 82 1b 00 | 5c 66 83 15 00 c5 20 88 |..\n!...|\f.... .|
|00005330| c3 c1 21 88 c6 20 29 87 | 22 20 5b 67 65 74 2d 62 |..!.. ).|" [get-b|
|00005340| 75 66 66 65 72 20 22 2a | 47 6f 6d 6f 6b 75 2a 22 |uffer "*|Gomoku*"|
|00005350| 20 62 75 66 66 20 73 77 | 69 74 63 68 2d 74 6f 2d | buff sw|itch-to-|
|00005360| 62 75 66 66 65 72 20 67 | 6f 6d 6f 6b 75 2d 67 61 |buffer g|omoku-ga|
|00005370| 6d 65 2d 69 6e 2d 70 72 | 6f 67 72 65 73 73 20 67 |me-in-pr|ogress g|
|00005380| 6f 6d 6f 6b 75 2d 63 72 | 61 73 68 2d 67 61 6d 65 |omoku-cr|ash-game|
|00005390| 20 67 6f 6d 6f 6b 75 2d | 6d 6f 64 65 5d 20 33 20 | gomoku-|mode] 3 |
|000053a0| 28 23 24 20 2e 20 32 31 | 31 38 30 29 20 6e 69 6c |(#$ . 21|180) nil|
|000053b0| 5d 29 0a 23 40 36 30 20 | 52 65 74 75 72 6e 20 54 |]).#@60 |Return T|
|000053c0| 20 69 66 20 53 51 55 41 | 52 45 20 62 65 6c 6f 6e | if SQUA|RE belon|
|000053d0| 67 73 20 74 6f 20 61 20 | 71 74 75 70 6c 65 20 66 |gs to a |qtuple f|
|000053e0| 69 6c 6c 65 64 20 77 69 | 74 68 20 56 41 4c 55 45 |illed wi|th VALUE|
|000053f0| 73 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 67 |s...(def|alias 'g|
|00005400| 6f 6d 6f 6b 75 2d 66 69 | 6e 64 2d 66 69 6c 6c 65 |omoku-fi|nd-fille|
|00005410| 64 2d 71 74 75 70 6c 65 | 20 23 5b 28 73 71 75 61 |d-qtuple| #[(squa|
|00005420| 72 65 20 76 61 6c 75 65 | 29 20 22 c0 09 5c 6e c3 |re value|) "..\n.|
|00005430| c4 24 86 21 00 c0 09 5c | 6e c4 c3 24 86 21 00 c0 |.$.!...\|n..$.!..|
|00005440| 09 5c 6e c3 89 24 86 21 | 00 c0 09 5c 6e c5 c3 24 |.\n..$.!|...\n..$|
|00005450| 87 22 20 5b 67 6f 6d 6f | 6b 75 2d 63 68 65 63 6b |." [gomo|ku-check|
|00005460| 2d 66 69 6c 6c 65 64 2d | 71 74 75 70 6c 65 20 73 |-filled-|qtuple s|
|00005470| 71 75 61 72 65 20 76 61 | 6c 75 65 20 31 20 30 20 |quare va|lue 1 0 |
|00005480| 2d 31 5d 20 35 20 28 23 | 24 20 2e 20 32 31 34 33 |-1] 5 (#|$ . 2143|
|00005490| 32 29 5d 29 0a 23 40 37 | 34 20 52 65 74 75 72 6e |2)]).#@7|4 Return|
|000054a0| 20 54 20 69 66 20 53 51 | 55 41 52 45 20 62 65 6c | T if SQ|UARE bel|
|000054b0| 6f 6e 67 73 20 74 6f 20 | 61 20 71 74 75 70 6c 65 |ongs to |a qtuple|
|000054c0| 20 66 69 6c 6c 65 64 20 | 20 77 69 74 68 20 56 41 | filled | with VA|
|000054d0| 4c 55 45 73 20 61 6c 6f | 6e 67 20 44 58 2c 20 44 |LUEs alo|ng DX, D|
|000054e0| 59 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 67 |Y...(def|alias 'g|
|000054f0| 6f 6d 6f 6b 75 2d 63 68 | 65 63 6b 2d 66 69 6c 6c |omoku-ch|eck-fill|
|00005500| 65 64 2d 71 74 75 70 6c | 65 20 23 5b 28 73 71 75 |ed-qtupl|e #[(squ|
|00005510| 61 72 65 20 76 61 6c 75 | 65 20 64 78 20 64 79 29 |are valu|e dx dy)|
|00005520| 20 22 c0 89 09 89 c2 0b | 5c 66 5c 22 1d 1e 06 1e | "......|\f\"....|
|00005530| 07 1e 08 89 1e 09 ca 56 | 83 30 00 0e 0b 0e 5c 66 |.......V|.0....\f|
|00005540| 0e 07 0d 5a 89 16 07 48 | 55 83 30 00 0e 09 53 89 |...Z...H|U.0...S.|
|00005550| 16 09 82 12 00 0e 08 0e | 09 cd 5c 5c 57 83 53 00 |........|..\\W.S.|
|00005560| 0e 0b 0e 5c 66 0e 06 0d | 5c 5c 89 16 06 48 55 83 |...\f...|\\...HU.|
|00005570| 53 00 0e 08 54 89 16 08 | 82 32 00 0e 08 0e 09 cd |S...T...|.2......|
|00005580| 5c 5c 55 85 6f 00 ce 09 | 0e 09 0d 5f 5c 5c 09 0e |\\U.o...|..._\\..|
|00005590| 08 0d 5f 5c 5c 0b 5c 66 | 24 88 cf 2d 87 22 20 5b |.._\\.\f|$..-." [|
|000055a0| 30 20 73 71 75 61 72 65 | 20 67 6f 6d 6f 6b 75 2d |0 square| gomoku-|
|000055b0| 78 79 2d 74 6f 2d 69 6e | 64 65 78 20 64 78 20 64 |xy-to-in|dex dx d|
|000055c0| 79 20 64 65 70 6c 20 72 | 69 67 68 74 20 6c 65 66 |y depl r|ight lef|
|000055d0| 74 20 62 20 61 20 2d 34 | 20 76 61 6c 75 65 20 67 |t b a -4| value g|
|000055e0| 6f 6d 6f 6b 75 2d 62 6f | 61 72 64 20 34 20 67 6f |omoku-bo|ard 4 go|
|000055f0| 6d 6f 6b 75 2d 63 72 6f | 73 73 2d 71 74 75 70 6c |moku-cro|ss-qtupl|
|00005600| 65 20 74 5d 20 38 20 28 | 23 24 20 2e 20 32 31 36 |e t] 8 (|#$ . 216|
|00005610| 35 38 29 5d 29 0a 23 40 | 37 33 20 43 72 6f 73 73 |58)]).#@|73 Cross|
|00005620| 20 65 76 65 72 79 20 73 | 71 75 61 72 65 20 62 65 | every s|quare be|
|00005630| 74 77 65 65 6e 20 53 51 | 55 41 52 45 31 20 61 6e |tween SQ|UARE1 an|
|00005640| 64 20 53 51 55 41 52 45 | 32 20 69 6e 20 74 68 65 |d SQUARE|2 in the|
|00005650| 20 44 58 2c 20 44 59 20 | 64 69 72 65 63 74 69 6f | DX, DY |directio|
|00005660| 6e 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 67 |n...(def|alias 'g|
|00005670| 6f 6d 6f 6b 75 2d 63 72 | 6f 73 73 2d 71 74 75 70 |omoku-cr|oss-qtup|
|00005680| 6c 65 20 23 5b 28 73 71 | 75 61 72 65 31 20 73 71 |le #[(sq|uare1 sq|
|00005690| 75 61 72 65 32 20 64 78 | 20 64 79 29 20 22 8a c0 |uare2 dx| dy) "..|
|000056a0| 09 5c 6e 5c 22 c3 89 1c | 1d 1e 06 0e 07 0e 08 55 |.\n\"...|.......U|
|000056b0| 84 96 00 c9 0e 07 21 88 | 0e 07 0e 06 5c 5c 16 07 |......!.|....\\..|
|000056c0| 5c 6e ca 55 83 3b 00 cb | 75 88 cc cd 0e 0e 53 c3 |\n.U.;..|u.....S.|
|000056d0| 23 88 60 cf d0 77 88 60 | 7c 88 82 0b 00 09 ca 55 |#.`..w.`||......U|
|000056e0| 83 66 00 cb 69 1e 11 1e | 12 0e 12 0e 13 57 83 62 |.f..i...|.....W.b|
|000056f0| 00 0e 12 54 16 12 cb 79 | 88 0e 11 6a 88 d4 d5 21 |...T...y|...j...!|
|00005700| 88 82 47 00 2a 82 0b 00 | 09 d6 55 83 81 00 69 0e |..G.*...|..U...i.|
|00005710| 0e d7 a5 5a 0e 13 d7 a5 | 79 88 6a 88 d4 d8 21 88 |...Z....|y.j...!.|
|00005720| 82 0b 00 69 0e 0e d7 a5 | 5c 5c 0e 13 d7 a5 79 88 |...i....|\\....y.|
|00005730| 6a 88 d4 d9 21 88 82 0b | 00 2c da ca 21 87 22 20 |j...!...|.,..!." |
|00005740| 5b 67 6f 6d 6f 6b 75 2d | 78 79 2d 74 6f 2d 69 6e |[gomoku-|xy-to-in|
|00005750| 64 65 78 20 64 78 20 64 | 79 20 74 20 69 6e 68 69 |dex dx d|y t inhi|
|00005760| 62 69 74 2d 70 6f 69 6e | 74 2d 6d 6f 74 69 6f 6e |bit-poin|t-motion|
|00005770| 2d 68 6f 6f 6b 73 20 69 | 6e 68 69 62 69 74 2d 72 |-hooks i|nhibit-r|
|00005780| 65 61 64 2d 6f 6e 6c 79 | 20 64 65 70 6c 20 73 71 |ead-only| depl sq|
|00005790| 75 61 72 65 31 20 73 71 | 75 61 72 65 32 20 67 6f |uare1 sq|uare2 go|
|000057a0| 6d 6f 6b 75 2d 67 6f 74 | 6f 2d 73 71 75 61 72 65 |moku-got|o-square|
|000057b0| 20 30 20 31 20 69 6e 73 | 65 72 74 2d 63 68 61 72 | 0 1 ins|ert-char|
|000057c0| 20 34 35 20 67 6f 6d 6f | 6b 75 2d 73 71 75 61 72 | 45 gomo|ku-squar|
|000057d0| 65 2d 77 69 64 74 68 20 | 22 20 09 22 20 6e 69 6c |e-width |" ." nil|
|000057e0| 20 63 6f 6c 75 6d 6e 20 | 6e 20 67 6f 6d 6f 6b 75 | column |n gomoku|
|000057f0| 2d 73 71 75 61 72 65 2d | 68 65 69 67 68 74 20 69 |-square-|height i|
|00005800| 6e 73 65 72 74 2d 61 6e | 64 2d 69 6e 68 65 72 69 |nsert-an|d-inheri|
|00005810| 74 20 31 32 34 20 2d 31 | 20 32 20 34 37 20 39 32 |t 124 -1| 2 47 92|
|00005820| 20 73 69 74 2d 66 6f 72 | 5d 20 34 20 28 23 24 20 | sit-for|] 4 (#$ |
|00005830| 2e 20 32 32 30 34 33 29 | 5d 29 0a 23 40 34 36 20 |. 22043)|]).#@46 |
|00005840| 4d 6f 76 65 20 70 6f 69 | 6e 74 20 64 6f 77 6e 20 |Move poi|nt down |
|00005850| 6f 6e 65 20 72 6f 77 20 | 6f 6e 20 74 68 65 20 47 |one row |on the G|
|00005860| 6f 6d 6f 6b 75 20 62 6f | 61 72 64 2e 1f 0a 28 64 |omoku bo|ard...(d|
|00005870| 65 66 61 6c 69 61 73 20 | 27 67 6f 6d 6f 6b 75 2d |efalias |'gomoku-|
|00005880| 6d 6f 76 65 2d 64 6f 77 | 6e 20 23 5b 6e 69 6c 20 |move-dow|n #[nil |
|00005890| 22 c0 20 09 57 85 5c 6e | 00 c2 0b 21 87 22 20 5b |". .W.\n|...!." [|
|000058a0| 67 6f 6d 6f 6b 75 2d 70 | 6f 69 6e 74 2d 79 20 67 |gomoku-p|oint-y g|
|000058b0| 6f 6d 6f 6b 75 2d 62 6f | 61 72 64 2d 68 65 69 67 |omoku-bo|ard-heig|
|000058c0| 68 74 20 6e 65 78 74 2d | 6c 69 6e 65 20 67 6f 6d |ht next-|line gom|
|000058d0| 6f 6b 75 2d 73 71 75 61 | 72 65 2d 68 65 69 67 68 |oku-squa|re-heigh|
|000058e0| 74 5d 20 32 20 28 23 24 | 20 2e 20 32 32 35 39 32 |t] 2 (#$| . 22592|
|000058f0| 29 20 6e 69 6c 5d 29 0a | 23 40 34 34 20 4d 6f 76 |) nil]).|#@44 Mov|
|00005900| 65 20 70 6f 69 6e 74 20 | 75 70 20 6f 6e 65 20 72 |e point |up one r|
|00005910| 6f 77 20 6f 6e 20 74 68 | 65 20 47 6f 6d 6f 6b 75 |ow on th|e Gomoku|
|00005920| 20 62 6f 61 72 64 2e 1f | 0a 28 64 65 66 61 6c 69 | board..|.(defali|
|00005930| 61 73 20 27 67 6f 6d 6f | 6b 75 2d 6d 6f 76 65 2d |as 'gomo|ku-move-|
|00005940| 75 70 20 23 5b 6e 69 6c | 20 22 c0 20 c1 56 85 5c |up #[nil| ". .V.\|
|00005950| 6e 00 c2 0b 21 87 22 20 | 5b 67 6f 6d 6f 6b 75 2d |n...!." |[gomoku-|
|00005960| 70 6f 69 6e 74 2d 79 20 | 31 20 70 72 65 76 69 6f |point-y |1 previo|
|00005970| 75 73 2d 6c 69 6e 65 20 | 67 6f 6d 6f 6b 75 2d 73 |us-line |gomoku-s|
|00005980| 71 75 61 72 65 2d 68 65 | 69 67 68 74 5d 20 32 20 |quare-he|ight] 2 |
|00005990| 28 23 24 20 2e 20 32 32 | 37 38 31 29 20 6e 69 6c |(#$ . 22|781) nil|
|000059a0| 5d 29 0a 23 40 34 34 20 | 4d 6f 76 65 20 70 6f 69 |]).#@44 |Move poi|
|000059b0| 6e 74 20 4e 6f 72 74 68 | 20 45 61 73 74 20 6f 6e |nt North| East on|
|000059c0| 20 74 68 65 20 47 6f 6d | 6f 6b 75 20 62 6f 61 72 | the Gom|oku boar|
|000059d0| 64 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 67 |d...(def|alias 'g|
|000059e0| 6f 6d 6f 6b 75 2d 6d 6f | 76 65 2d 6e 65 20 23 5b |omoku-mo|ve-ne #[|
|000059f0| 6e 69 6c 20 22 c0 20 88 | c1 75 87 22 20 5b 67 6f |nil ". .|.u." [go|
|00005a00| 6d 6f 6b 75 2d 6d 6f 76 | 65 2d 75 70 20 6e 69 6c |moku-mov|e-up nil|
|00005a10| 5d 20 31 20 28 23 24 20 | 2e 20 32 32 39 35 32 29 |] 1 (#$ |. 22952)|
|00005a20| 20 6e 69 6c 5d 29 0a 23 | 40 34 34 20 4d 6f 76 65 | nil]).#|@44 Move|
|00005a30| 20 70 6f 69 6e 74 20 53 | 6f 75 74 68 20 45 61 73 | point S|outh Eas|
|00005a40| 74 20 6f 6e 20 74 68 65 | 20 47 6f 6d 6f 6b 75 20 |t on the| Gomoku |
|00005a50| 62 6f 61 72 64 2e 1f 0a | 28 64 65 66 61 6c 69 61 |board...|(defalia|
|00005a60| 73 20 27 67 6f 6d 6f 6b | 75 2d 6d 6f 76 65 2d 73 |s 'gomok|u-move-s|
|00005a70| 65 20 23 5b 6e 69 6c 20 | 22 c0 20 88 c1 75 87 22 |e #[nil |". ..u."|
|00005a80| 20 5b 67 6f 6d 6f 6b 75 | 2d 6d 6f 76 65 2d 64 6f | [gomoku|-move-do|
|00005a90| 77 6e 20 6e 69 6c 5d 20 | 31 20 28 23 24 20 2e 20 |wn nil] |1 (#$ . |
|00005aa0| 32 33 30 38 34 29 20 6e | 69 6c 5d 29 0a 23 40 34 |23084) n|il]).#@4|
|00005ab0| 34 20 4d 6f 76 65 20 70 | 6f 69 6e 74 20 4e 6f 72 |4 Move p|oint Nor|
|00005ac0| 74 68 20 57 65 73 74 20 | 6f 6e 20 74 68 65 20 47 |th West |on the G|
|00005ad0| 6f 6d 6f 6b 75 20 62 6f | 61 72 64 2e 1f 0a 28 64 |omoku bo|ard...(d|
|00005ae0| 65 66 61 6c 69 61 73 20 | 27 67 6f 6d 6f 6b 75 2d |efalias |'gomoku-|
|00005af0| 6d 6f 76 65 2d 6e 77 20 | 23 5b 6e 69 6c 20 22 c0 |move-nw |#[nil ".|
|00005b00| 20 88 c1 20 87 22 20 5b | 67 6f 6d 6f 6b 75 2d 6d | .. ." [|gomoku-m|
|00005b10| 6f 76 65 2d 75 70 20 62 | 61 63 6b 77 61 72 64 2d |ove-up b|ackward-|
|00005b20| 63 68 61 72 5d 20 31 20 | 28 23 24 20 2e 20 32 33 |char] 1 |(#$ . 23|
|00005b30| 32 31 38 29 20 6e 69 6c | 5d 29 0a 23 40 34 34 20 |218) nil|]).#@44 |
|00005b40| 4d 6f 76 65 20 70 6f 69 | 6e 74 20 53 6f 75 74 68 |Move poi|nt South|
|00005b50| 20 57 65 73 74 20 6f 6e | 20 74 68 65 20 47 6f 6d | West on| the Gom|
|00005b60| 6f 6b 75 20 62 6f 61 72 | 64 2e 1f 0a 28 64 65 66 |oku boar|d...(def|
|00005b70| 61 6c 69 61 73 20 27 67 | 6f 6d 6f 6b 75 2d 6d 6f |alias 'g|omoku-mo|
|00005b80| 76 65 2d 73 77 20 23 5b | 6e 69 6c 20 22 c0 20 88 |ve-sw #[|nil ". .|
|00005b90| c1 20 87 22 20 5b 67 6f | 6d 6f 6b 75 2d 6d 6f 76 |. ." [go|moku-mov|
|00005ba0| 65 2d 64 6f 77 6e 20 62 | 61 63 6b 77 61 72 64 2d |e-down b|ackward-|
|00005bb0| 63 68 61 72 5d 20 31 20 | 28 23 24 20 2e 20 32 33 |char] 1 |(#$ . 23|
|00005bc0| 33 36 30 29 20 6e 69 6c | 5d 29 0a 23 40 35 33 20 |360) nil|]).#@53 |
|00005bd0| 4d 6f 76 65 20 70 6f 69 | 6e 74 20 74 6f 20 66 69 |Move poi|nt to fi|
|00005be0| 72 73 74 20 73 71 75 61 | 72 65 20 6f 6e 20 74 68 |rst squa|re on th|
|00005bf0| 65 20 47 6f 6d 6f 6b 75 | 20 62 6f 61 72 64 20 72 |e Gomoku| board r|
|00005c00| 6f 77 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |ow...(de|falias '|
|00005c10| 67 6f 6d 6f 6b 75 2d 62 | 65 67 69 6e 6e 69 6e 67 |gomoku-b|eginning|
|00005c20| 2d 6f 66 2d 6c 69 6e 65 | 20 23 5b 6e 69 6c 20 22 |-of-line| #[nil "|
|00005c30| c0 09 21 87 22 20 5b 6d | 6f 76 65 2d 74 6f 2d 63 |..!." [m|ove-to-c|
|00005c40| 6f 6c 75 6d 6e 20 67 6f | 6d 6f 6b 75 2d 78 2d 6f |olumn go|moku-x-o|
|00005c50| 66 66 73 65 74 5d 20 32 | 20 28 23 24 20 2e 20 32 |ffset] 2| (#$ . 2|
|00005c60| 33 35 30 34 29 20 6e 69 | 6c 5d 29 0a 23 40 35 32 |3504) ni|l]).#@52|
|00005c70| 20 4d 6f 76 65 20 70 6f | 69 6e 74 20 74 6f 20 6c | Move po|int to l|
|00005c80| 61 73 74 20 73 71 75 61 | 72 65 20 6f 6e 20 74 68 |ast squa|re on th|
|00005c90| 65 20 47 6f 6d 6f 6b 75 | 20 62 6f 61 72 64 20 72 |e Gomoku| board r|
|00005ca0| 6f 77 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |ow...(de|falias '|
|00005cb0| 67 6f 6d 6f 6b 75 2d 65 | 6e 64 2d 6f 66 2d 6c 69 |gomoku-e|nd-of-li|
|00005cc0| 6e 65 20 23 5b 6e 69 6c | 20 22 c0 09 5c 6e 0b 53 |ne #[nil| "..\n.S|
|00005cd0| 5f 5c 5c 21 87 22 20 5b | 6d 6f 76 65 2d 74 6f 2d |_\\!." [|move-to-|
|00005ce0| 63 6f 6c 75 6d 6e 20 67 | 6f 6d 6f 6b 75 2d 78 2d |column g|omoku-x-|
|00005cf0| 6f 66 66 73 65 74 20 67 | 6f 6d 6f 6b 75 2d 73 71 |offset g|omoku-sq|
|00005d00| 75 61 72 65 2d 77 69 64 | 74 68 20 67 6f 6d 6f 6b |uare-wid|th gomok|
|00005d10| 75 2d 62 6f 61 72 64 2d | 77 69 64 74 68 5d 20 34 |u-board-|width] 4|
|00005d20| 20 28 23 24 20 2e 20 32 | 33 36 36 35 29 20 6e 69 | (#$ . 2|3665) ni|
|00005d30| 6c 5d 29 0a 28 70 72 6f | 76 69 64 65 20 28 71 75 |l]).(pro|vide (qu|
|00005d40| 6f 74 65 20 67 6f 6d 6f | 6b 75 29 29 0a |ote gomo|ku)). |
+--------+-------------------------+-------------------------+--------+--------+